Sign in Join
FPDoc Onlineexperiment

TParam class

In unit DB

Parameter description class.

Declaration

pascal
TParam = class(TCollectionItem)

Inheritance

  1. TParam
  2. TCollectionItem
  3. TPersistent
  4. TObject

Descends from it: TSQLDBParam

Description

TParam is one item in a TParams collection. It describes the name ( Name), type ( ParamType) and value ( Value) of a parameter in a parameterized query or stored procedure. Under normal circumstances, it should never be necessary to create a TParam instance manually; the TDataset descendent that owns the parameters should have created all necessary TParam instances.

See also

Properties

AsBCDpublicGet or set parameter value as BCD value.
AsBlobpublicReturn parameter value as a blob.
AsBooleanpublicGet/Set parameter value as a boolean value.
AsBytepublicGet/Set parameter value as a 8-bit unsigned integer value.
AsBytespublicGet or set parameter value as TBytes.
AsCurrencypublicGet/Set parameter value as a currency value.
AsDatepublicGet/Set parameter value as a date (TDateTime) value.
AsDateTimepublicGet/Set parameter value as a date/time (TDateTime) value.
AsFloatpublicGet/Set parameter value as a floating-point value.
AsIntegerpublicGet/Set parameter value as an integer (32-bit) value.
AsLargeIntpublicGet/Set parameter value as a 64-bit integer value.
AsLongWordpublicGet/Set parameter value as a 32-bit unsigned integer value.
AsMemopublicGet/Set parameter value as a memo (string) value.
AsShortIntpublic
AsSinglepublic
AsSmallIntpublicGet/Set parameter value as a smallint value.
AsStringpublicGet/Set parameter value as a string value.
AsAnsiStringpublicParameter contents as an ANSI string.
AsUTF8StringpublicParameter contents as an UTF8 string.
AsUnicodeStringpublicParameter contents as a Unicode string.
AsTimepublicGet/Set parameter value as a time (TDateTime) value.
AsWordpublicGet/Set parameter value as a word value.
AsFMTBCDpublicParameter value as a BCD value.
BoundpublicIs the parameter value bound (set to fixed value).
DatasetpublicDataset to which this parameter belongs.
IsNullpublicIs the parameter empty.
NativeStrpublicNo description available.
TextpublicRead or write the value of the parameter as a string.
AsWideStringpublicGet/Set the value as a widestring.
DataTypepublishedData type of the parameter.
NamepublishedName of the parameter.
NumericScalepublishedNumeric scale.
ParamTypepublishedType of parameter.
PrecisionpublishedPrecision of the BCD value.
SizepublishedSize of the parameter.
ValuepublishedValue as a variant.

Methods

AssignParamprotected
AssignToprotectedGeneric assignment function.
GetAsBooleanprotected
GetAsBytesprotected
GetAsCurrencyprotected
GetAsDateTimeprotected
GetAsFloatprotected
GetAsIntegerprotected
GetAsLargeIntprotected
GetAsLongWordprotected
GetAsMemoprotected
GetAsSingleprotected
GetAsStringprotected
GetAsAnsiStringprotected
GetAsUnicodeStringprotected
GetAsUTF8Stringprotected
GetAsWideStringprotected
GetAsVariantprotected
GetAsFMTBCDprotected
GetDisplayNameprotectedReturns the of the collectionitem.
GetIsNullprotected
IsEqualprotected
SetAsBCDprotected
SetAsBlobprotected
SetAsBooleanprotected
SetAsByteprotected
SetAsBytesprotected
SetAsCurrencyprotected
SetAsDateprotected
SetAsDateTimeprotected
SetAsFloatprotected
SetAsIntegerprotected
SetAsLargeIntprotected
SetAsLongWordprotected
SetAsMemoprotected
SetAsShortIntprotected
SetAsSingleprotected
SetAsSmallIntprotected
SetAsStringprotected
SetAsAnsiStringprotected
SetAsUTF8Stringprotected
SetAsUnicodeStringprotected
SetAsWideStringprotected
SetAsTimeprotected
SetAsVariantprotected
SetAsWordprotected
SetAsFMTBCDprotected
SetDataTypeprotected
SetTextprotected
CreatepublicCreate a new parameter value.
AssignpublicAssign one parameter instance to another.
AssignFieldpublicCopy value from field instance.
AssignToFieldpublicAssign parameter value to field.
AssignFieldValuepublicAssign field value to the parameter.
AssignFromFieldpublicCopy field type and value.
ClearpublicClear the parameter value.
GetDatapublicGet the parameter value from a memory buffer.
GetDataSizepublicReturn the size of the data.
LoadFromFilepublicLoad a parameter value from file.
LoadFromStreampublicLoad a parameter value from stream.
SetBlobDatapublicSet BLOB data.
SetDatapublicSet the parameter value from a buffer.

Inherited

From TCollectionItem (11)

Changed Collection Destroy DisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (4)

DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.