TableNext
Previous  Top  Next


Prototype

TableNext
(intTableHandle)

Description

It 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

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

// It places itself on the first record of the table
TableFirst(UnaTabella);

// It starts the cycle
While not TableEOF(UnaTabella) do

Begin  
 
// It sets the edit mode   
TableEdit(UnaTabella);  
 
// It sends a keys sequence  
SendKeys('Invoices', TableGetFieldByName(UnaTabella,'COMPANY TITLE'), False, False, false);  
 
// It moves on the next record  
TableNext(UnaTabella);  
End;  

// It closes the table
TableClose(UnaTabella);