Delphi Examples: DbiSwitchToIndex

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiSwitchToIndex

Return to chapter overview

Set cursor to the specified index name:

Users of TTable objects should use the IndexName property to change indexes. Set cursor to the specified index name and keep the cursor on the same record.

This example uses the following input:

 fDbiSwitchToIndex(Table1.Handle, 'VendorNo');

 

The procedure is:

procedure fDbiSwitchToIndex(hTmpCur: hDbiCur; IdxName: string);

begin

 Check(DbiSwitchToIndex(hTmpCur, PChar(IdxName), nil, 0, True));

end;