TablePrior

Top  Previous  Next

Prototype

 

TablePrior(intTableHandle)

 

Description

 

Selects the prior record in the table.

 

Parameters

 

IntTableHandle: integer value corresponding to the table handle.

 

Returned value

 

None.

 

Notes

 

When TablePrior is used after an edit or an insert command (TableEdit, TableInsert,…) all those changes made on the current record are automatically confirmed and the prior record is reached in consultation mode.

If one tries to place on an inexistent record then an error will be shown.

 

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;