Caché Class Definition Reference
ProcedureBlock
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Specifies whether each ObjectScript method in this class is a procedure block by default.
Usage
To cause the ObjectScript methods in this class to be procedure blocks by default, either omit this keyword or use the following syntax:
Class MyApp.MyClass [ ProcedureBlock ] 
{
//class members
}
Otherwise, use the following syntax:
Class MyApp.MyClass [ Not ProcedureBlock ]
{
//class members
}
Details
This keyword specifies whether Caché ObjectScript methods in this class are procedure blocks by default. You can override this for an individual methods by setting the ProcedureBlock keyword for the method.
This keyword is ignored for methods written in other languages.
Within Caché 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.
Effect on Subclasses
This keyword is not inherited.
Default
If you omit this keyword, each Caché ObjectScript method in this class is a procedure block (unless you override that for individual methods).
See Also