Advantage TDataSet Descendant
Retrieves the index key expression of this index order.
function AdsGetIndexExpr : String;
The index expression returned by AdsGetIndexExpr is the expression evaluated against records in the table to generate index keys. This expression can evaluate to a numeric value, a string value, a date, or a logical.
AdsTable1.Exclusive := TRUE;
AdsTable1.Active := TRUE;
AdsTable1.AdsCreateIndex( '', 'Tag1', 'LastName;DeptNum', 'Empid>50', '', [] );
AdsTable1.IndexName := 'Tag1';
strExpression := AdsTable1.AdsGetIndexExpr;
{ strExpression equals LASTNUM;DEPTNUM }