ClearError Method (ERROR)


10.1, PLBCMP GUI Only

 

The ClearError method removes one error from the error stack. This method uses the following format:

 

 

[label]

{object}.ClearError

[GIVING {return}] [USING [*POS=]{position}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. An ERROR object that has been previously declared.

return

Optional. A Numeric Variable that always returns zero.

position

Optional. A Numeric variable or decimal number whose value is a one relative position in the current error stack.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO and OVER flags are set to TRUE.

  2. The EOS flag is always set to FALSE.

  3. If the {position} parameter is not specified, this method default is to clear the most current error.

 

 

See Also: Method Syntax, ERROR Methods



PL/B Language Reference ClearAll Method (ERROR) GetCode Method (ERROR)