3. Statements : OpenROAD Language Statements : Method Statement
 
Share this page                  
Method Statement
This statement defines a 4GL method.
This statement has the following syntax:
method methodname [([parameterlist])] =
[declareblock]
beginendblock[;]
The method statement defines a 4GL method.
The parameterlist and declareblock define local variables for the method. Parameters are local variables that can be specified as parameters on a method invocation statement that invokes the method. The data type of a local variable can be any simple data type, a system class, or user class. The beginendblock specifies the actions to be performed by the method.
For more information about using methods, see the Programming Guide.