Advantage Database Server

TAdsTable.AdsSetLong

Advantage TDataSet Descendant

TAdsTable.AdsSetLong

Advantage TDataSet Descendant

This is the first topic This is the last topic  

TAdsTable.AdsSetLong

Advantage TDataSet Descendant

This is the first topic This is the last topic  

Stores the given signed long integer in the given field.

Syntax

procedure AdsSetLong( strFieldName : String; lValue : Longint );

Parameters

strFieldName

Name of field to set.

lValue

Long value to be stored in table.

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

AdsSetLong can be used to set values for numeric, integer, short integer, double, CurDouble, RowVersion, and Money fields. If there are decimals in a numeric field, the decimals are padded with character zeros.

Example

AdsTable1.FieldByName( ‘RecordID’ ).AsInteger = 93;

See Also

AdsGetLong

AdsSetField