TableAppend
Previous  Top  Next

Prototype

TableAppend (intTableHandle)

Description

It can set the append mode in the table.

Parameters

IntTableHandle
: integer value corresponding to the table handle.

Returned value

None.

Notes

The append mode for the table refers to the current record, by moving from a record to another one, there is a return to the consultation mode.
Use the TablePost command in order to confirm the additions, while to cancel them use the TableCancel command.

Example

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

//It orders the table  according to  a field 
TableSetIndex(UnaTabella,'Company'); 

//It looks for the first field in the table,if it doesn't exist then
If not TableFind(UnaTabella, 'Recogniform Spa') then

begin  
//It sets the append mode of the table  
TableAppend(UnaTabella);  
 
//It stores the first field value in the field Company TableSetFieldByName(UnaTabella,'Company','Recogniform Spa');  
 
// It stores the 2nd  field value in the field website  
TableSetFieldByName(UnaTabella,'WebSite','www.recogniform.com');  
 
   TablePost(UnaTabella);  
end;  

//It executes other operations 

// It closes the table
TableClose(UnaTabella);