Advantage Database Server

TAdsTable.AdsGetLong

Advantage TDataSet Descendant

TAdsTable.AdsGetLong

Advantage TDataSet Descendant

This is the first topic This is the last topic  

TAdsTable.AdsGetLong

Advantage TDataSet Descendant

This is the first topic This is the last topic  

Retrieves the long integer value from the given field.

Syntax

function AdsGetLong( strFieldName : String ) :Longint;

Parameter

strFieldName

Name of field to retrieve.

CAUTION It is recommended that this Advantage extended method not be used. Please read the Caution About Extended Methods for more information. The suggested native Delphi method to use instead is: TField.AsInteger. See your Delphi documentation for more information about this native Delphi method.

Description

AdsGetLong returns the signed long value stored in the numeric, integer, short integer, double, CurDouble, RowVersion, or auto-increment field. It is possible to either overflow the value or lose decimal precision by using this function. If more precision is desired, use AdsGetDouble. When using this function to retrieve an auto-increment value, be sure to treat the result as an unsigned value. If AdsGetLong is used to retrieve a Money field, the four decimal digits will be rounded to the nearest whole number.

Example

iID := AdsTable1.FieldByName( ‘RecordID’ ).AsInteger;

See Also

AdsGetField

AdsSetLong