GetCount Method (ERROR)


10.1, PLBCMP GUI Only

 

The GetCount method retrieves the number of errors on the error stack. This method uses the following format:

 

 

[label]

{object}.GetCount

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. An ERROR object that has been previously declared.

return

Optional. A Numeric Variable that returns the number of errors on the error stack.

Flags Affected: EOS, OVER, ZERO

Note the following:

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

  2. The OVER flag is set if the returned value overflows the {return} Numeric Variable.

  3. The EOS flag is always set to FALSE.

 

 

See Also: Method Syntax, ERROR Methods

 



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