|
<< Click to Display Table of Contents >> Delphi Examples: DbiSwitchToIndex |
![]() ![]()
|
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;