TableLast |
Top Previous Next |
Prototype
TableLast(intTableHandle)
Description
Selects the last table record.
Parameters
IntTableHandle: integer value corresponding to the table handle.
Returned value
None.
Notes
When TableLast 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 last record in consultation mode. If one tries to place on an inexistent record it will appear an error.
Example
// Opens a table TableOne:=TableOpenBDE('c:\archive\index\','archive.db');
// Move to the last table record TableLast(TableOne);
// Start a loop ending when the top of the table is reached While not TableBof(TableOne) do
Begin // Set the table edit mode TableEdit(TableOne)
// Edit all the table fields TableSetField(TableOne,0,'Edited');
// Move to the prior record TablePrior(TableOne); End;
|