TableFirst
Previous  Top  Next

Prototype

TableFirst
(intTableHandle)

Description

It selects the first record of the table.

Parameters

IntTableHandle
: integer value corresponding to the table handle.

Returned value

None.

Notes

When TableFirst 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 first record in consultation mode.

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);