Sign in Join
FPDoc Onlineexperiment

TField.AsLongint property

Member of TFieldpublicIn unit DB

Access the field's contents as a 32-bit signed integer (longint) value.

Declaration

pascal
property AsLongint: LongInt read GetAsLongint write SetAsLongint;

Description

AsLongint can be used to read or write the contents of the field as a 32-bit signed integer value (of type longint). If the native type of the field is not a longint value, then an attempt will be made to convert the field value from the native format to a longint value when reading the field's content. Likewise, when writing the property, the value will be converted to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field whose native data type is not a 32-bit signed integer-compatible value (string values for instance), an exception may be raised.

This is an alias for the AsInteger.

See also

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