TableCancel
Previous  Top  Next

Prototype

TableCancel(intTableHandle)

Description

It deletes the change or the insertion.

Parameters

IntTableHandle
: integer value corresponding to the table handle.

Returned value

None.

Notes

None.

Example

//It stores the table handle 
UnaTabella:= TableOpen('c:\documents\index','statistics.db');

// It executes other operations

// It sets the edit mode of the current record
TableEdit(UnaTabella);

// It executes some operations on a record

// commit only if there are less than 100 records
If  TableRecordCount(UnaTabella)< 100 then TablePost(UnaTabella)
   
//or else it deletes to changes
 else TableCancel(UnaTabella);

// It executes other operations

//It closes the table 
TableClose(UnaTabella);