Method Syntax
The syntax used for all methods is as follows:
|
|
|
|
|
|
|
|
Flags Affected: EOS, OVER, ZERO
Note the following:
[label} is an optional Program Execution Label.
{obj} is an object variable that has supported methods.
{method} is an identifier for the operation that is performed for the {object} variable. The syntax for {method} can be one of the following:
method keyword name
@{svar} where {svar} is a variable that contains the keyword name
{res} is a DIM, NCHAR, FORM, INTEGER, or an object (AUTOMATION, COLOR, FONT, IMAGELIST, or VARIANT) that receives the result of the method. The specific type allowed depends on the {method} requirements. If the {res} has a specific type of a DIM ( Character String Variable ), a FORM variable is allowed where the Character String data is moved to the FORM variable the same as described for a 'MOVE Character String to Numeric Field' (10.7). The {res} value is always optional.
If the {res} is a DIM or NCHAR variable, the EOS Condition Flag is set.if the variable is not large enough to contain the resulting value. The OVER and ZERO Condition Flags are always cleared.
If the {res} is a FORM, or INTEGER, and the value returned is zero, the ZERO Condition Flag is set. If {res} is too small to contain the resulting value, the OVER Condition Flag is set. The EOS Condition Flag is always cleared
For enhanced performance when using the Sunbelt PL/B Application server, only specify a return value {res} if actually needed.
{parm} is a DIM, FORM, INTEGER, immediate numeric value, expression, literal, or an object (AUTOMATION, COLOR, FONT, IMAGELIST, or VARIANT) specifying a parameter value. The specific type(s) allowed depend on the {method} requirements. If the {parm} has a specific type of a DIM (Character String Variable), a FORM variable is allowed such that the FORM string data is used and processed by the method. (10.7)
{KEY} is a keyword name that can be used with the specified {method} parameters. The use of {KEY} is optional. It is possible that some {methods} may not have named keywords that means the parameters must be in the proper parameter position. If a {method} has any parameters without a {KEY} name, those parameters must be specified in the parameter list before parameters with keywords. {KEY} can be one of the following:
*{keyword name}
@{svar} where {svar} is a variable that contains the keyword name
The optional GIVING preposition must occur before any USING prepositions.
If the USING list exceeds a single line, a colon (:) is used in place of a comma (,) to continue the list onto the next line.
The method syntax allows a line continuation character (:) before and after the GIVING and USING prepositions.
Examples:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
Line Continuation Examples:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: Objects
![]() |