Specifies whether this method is a procedure block. Applies only if the method is written in ObjectScript.
The class definition specifies whether methods in the class are procedure blocks by default. To override that default, and specify that a given method is a procedure block, use the following syntax:
Method name(formal_spec) As returnclass [ ProcedureBlock ]
Method name(formal_spec) As returnclass [ ProcedureBlock=1 ]
Otherwise, to specify that a given method is not a procedure block, use the following syntax:
Method name(formal_spec) As returnclass [ ProcedureBlock=0 ]
This keyword specifies that an ObjectScript method is a procedure block.
Within ObjectScript, methods can be implemented as procedure blocks or not. Procedure blocks enforce variable scoping: methods cannot see variables defined by their caller. New applications use procedure blocks; non-procedure blocks exist for backwards compatibility.
If you omit this keyword, the value of the class-level ProcedureBlock
keyword is used.
© 1997-2019 InterSystems Corporation, Cambridge, MA