SetErrorStackSize Method (ERROR)


10.1, PLBCMP GUI Only

 

The SetErrorStackSize method adjusts the size of the error stack. This method uses the following format:

 

 

[label]

{object}.SetErrorStackSize

[GIVING {return}] USING [*SIZE=]{size}

 

 

 

[*FLAGS=]{flags}]

 

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 previous error stack size.

size

Required. A Numeric Variable or decimal number whose value is the new stack size.

flags

Optional. A Numeric Variable that specifies a bit mask value that controls the behaviors of this method.

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.

  4. The {flags} parameter is implemented to support future method behaviors.

 

 

See Also: Method Syntax, ERROR Methods

 



PL/B Language Reference LogMessages Method (ERROR)