Advantage TDataSet Descendant
Retrieves the handle of an index order given the index order name.
function AdsGetIndexHandle( strIndexOrder : String ) : ADSHANDLE;
|
strIndexOrder |
Name of index order for which to search. |
For non-compound indexes, the index order name is the base of the file name (up to 8 characters). For compound indexes, the index order name is the tag name (up to 10 characters for CDXs, IDXs, and NTXs and up to 128 characters for ADIs).
If there is more than one index order open with the same name, the Advantage Client Engine will return the first one it finds.
AdsTable1.Exclusive := TRUE;
AdsTable1.Active := TRUE;
AdsTable1.AdsCreateIndex( '', 'Tag1', 'LastName;DeptNum', 'Empid>50', '', [] );
hHandle := AdsTable1.AdsGetIndexHandle( ‘Tag1’ );