TableNext |
Top Previous Next |
Prototype
TableNext(intTableHandle)
Description
Selects the next record in the table.
Parameters
IntTableHandle: integer value corresponding to the table handle.
Returned value
None.
Notes
When TableNext 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 next record in consultation mode. If one tries to place on an inexistent record an error will appear.
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); |