Rollback Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The Rollback method causes all pending deleted and inserted data to be restored to the original state. This method is used when the DATATABLE has the TRANSACTION property is enabled. The method uses the following format:

 

[label]

{object}.Rollback

[GIVING {return}]:

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

Optional. A Numeric Variable that returns a method result. A non-zero value is returned for a success. Zero is returned for a failure.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The EOS flag is always cleared.

  2. A non-zero value is returned for a success and zero is returned for a failure.

  3. The ZERO flag is set if the {return} value is zero.

  4. The OVER flag is set if the {return} variable is too small to receive the return value.

 

 

See Also: Method Syntax, DATATABLE Methods

 



PL/B Language Reference LoadCSVFile Method (DATATABLE) SaveCSVFile Method (DATATABLE)