TableFirst |
Top Previous Next |
Prototype
TableFirst(intTableHandle)
Description
Selects the first record of the table.
Parameters
IntTableHandle: integer value corresponding to the table handle.
Returned value
None.
Notes
When TableFirst is used after an edit or an insert command (TableEdit, TableInsert,…) all those changes made on the current record are automatically confirmed and it is reached the first record in consultation mode.
Example
// Store a table handle TableOne:=TableOpenBDE('c:\archive\index\','clients.db');
// Move to the first record of the table TableFirst(TableOne);
// Start the loop While not TableEOF(TableOne) do
Begin
// Set the edit mode TableEdit(TableOne);
// Send a keys sequence SendKeys('Invoices', TableGetFieldByName(TableOne,'COMPANY TITLE'), False, False, false);
// Move to the next record TableNext(TableOne); End;
// Close the table TableClose(TableOne);
|