Advantage TDataSet Descendant
Stores the given signed short (two-byte) integer in the given field.
procedure AdsSetShort( const strFieldName : string; sValue : SmallInt );
|
strFieldName |
Name of field to set |
|
sValue |
Short 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.
AdsSetShort can be used to set values for numeric, long integer, short integer, double, CurDouble, RowVersion, and Money fields. If there are decimals in a numeric field, the decimals are padded with character zeros. If the number of sValue is too large to fit in a numeric field, ADS_DATA_TOO_LONG is returned.
AdsTable1.FieldByName( ‘RecordID’ ).AsInteger := 22;