TableCancel

Top  Previous  Next

Prototype

 

TableCancel(intTableHandle)

 

Description

 

Deletes the change or the insertion.

 

Parameters

 

IntTableHandle: integer value corresponding to the table handle.

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

// Store the table handle

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

 

// Execute other operations

 

// Set the edit mode of the current record

TableEdit(TableOne);

 

// Execute some operations on a record

 

// commit only if there are less than 100 records

If  TableRecordCount(TableOne)< 100 then TablePost(TableOne)

 

//or else it deletes to changes

else TableCancel(TableOne);

 

// Execute other operations

 

// Closes the table

TableClose(TableOne);