Commit Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The Commit method causes any pending deleted columns or rows to be removed from the DATATABLE. Also, any inserted columns or rows are set to a fully active state. This method is used when the DATATABLE has the TRANSACTION property is enabled. The method uses the following format:

 

[label]

{object}.Commit

[GIVING {return}]:

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

Optional. A Numeric Variable that returns a method result.

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 value.

 

 

See Also: Method Syntax, DATATABLE Methods

 



PL/B Language Reference AddRow Method (DATATABLE) DeleteAllColumns (DATATABLE)