Advantage TDataSet Descendant
Returns an array of open index order handles for the given table.
function AdsGetAllIndexes( ahIndexes : Array of ADSHANDLE ) : Word;
|
ahIndexes |
Return index order handles in the given array. |
The index order handles are returned in the order they were opened. For CDX or ADI indexes, the index order handles are returned in the order in which they were created within the index file. Return value is the number of returned entries on output. AdsGetAllIndexes does not return information for full text search indexes.
var
ahIndexes : Array [0 .. 10] of AdsHandle;
wIndexHandleCount : Word;
begin
AdsTable1.Exclusive := TRUE;
AdsTable1.Active := TRUE;
AdsTable1.AdsCreateIndex( '', 'Tag1', 'LastName', '', '', [] );
AdsTable1.AdsCreateIndex( '', 'Tag2', 'DeptNum', '', '', [] );
wIndexHandleCount := AdsTable1.AdsGetAllIndexes( ahIndexes );
{ wIndexHandleCount equals 2 and ahIndexes contains two values }