Description: This function returns the number of formal parameters declared in a module.
Returns: Numeric
Usage: Script or Steady State
Format: FormalParms(Module)
Parameters: Module { Object value } { required } { no default: }
Any expression that returns an object or module type value.
Comments: This function's result may seem obvious, but this function can help automate some of the work in building a parameterized module, just in case the number of parameters declared in a module is changed.
Example:
<
TinyModule
(
a;
b;
)
[
numParms;
]
Main [
NumParms = FormalParms(Self());
]
>
The variable numParms will have a value of 2.
See Also: