FireDAC.Stan.Param.TFDParam.GetDataLength
Delphi
function GetDataLength(AIndex: Integer = -1): Integer;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Stan.Param.pas | FireDAC.Stan.Param | TFDParam |
Description
Indicates the length of the data depending on the type of the DataType property.
Call the GetDataLength method to obtain the length of a parameter value in the same form it will be transfered to the FireDAC database driver. The SizeOf method receives as a parameter the DataType of the TFDParam object, and returns the length of the field.
Note: String data types are an exception. For them, the number of characters without trailing zero character is returned.