Advantage TDataSet Descendant
Returns the Advantage Client Engine data type of the evaluated index keys.
type TAdsExpressionTypes = ( etLOGICAL, etNUMERIC, etDATE, etSTRING, etRAW );
function AdsGetKeyType : TAdsExpressionTypes;
Returns the data type of the key as evaluated by the Advantage Client Engine. Possible key types are etSTRING, etNUMERIC, etDATE, etRAW, and etLOGICAL. etRAW is returned for any index that uses the binary concatenation operator ";" and for indexes created on time, timestamp, and raw fields.
AdsTable1.Exclusive := TRUE;
AdsTable1.Active := TRUE;
AdsTable1.AdsCreateIndex( '', 'Tag1', 'LastName', '', '', [] );
AdsTable1.IndexName := 'Tag1';
eKeyType := AdsTable1.AdsGetKeyType;
{ eKeyType equals etString }
AdsTable1.AdsCreateIndex( '', 'Tag2', 'DeptNum', '', '', [] );
AdsTable1.IndexName := 'Tag2';
eKeyType := AdsTable1.AdsGetKeyType;
{ eKeyType equals etNUMERIC }