TablePrior
Previous  Top  Next

Prototype

TablePrior
(intTableHandle)

Description

It 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

//It opens a table
UnaTabella:=TableOpen('c:\archive\index\','archive.db');

//It places itself on the last table record
TableLast(UnaTabella);

//It starts a cycle ending when the top of the table is reached
While not TableBof(UnaTabella) do 

Begin  
//It sets the table edit mode   
TableEdit(UnaTabella)  
 
//It edits all the table fields  
TableSetField(UnaTabella,0,'Edited');  
 
//It moves on the prior record  
TablePrior(UnaTabella);  
End;