TableAppend

Top  Previous  Next

Prototype

 

TableAppend (intTableHandle)

 

Description

 

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

 

// Opens a table

TableOne:=TableOpenBDE('c:\invoices\index','invoices.db'); 

 

// Order the table  according to  a field

TableSetIndex(TableOne,'Company'); 

 

// Search for the first field in the table,if it doesn't exist then

If not TableFind(TableOne, 'Recogniform Spa') then

 

begin

// Set the append mode of the table

TableAppend(TableOne);

 

// Store the first field value in the field Company TableSetFieldByName(TableOne,'Company','Recogniform Spa');

 

// Store the 2nd  field value in the field website

TableSetFieldByName(TableOne,'WebSite','www.recogniform.com');

 

 TablePost(TableOne);

end;

 

// Execute other operations

 

// Close the table

TableClose(TableOne);