FormalParms
(Engine-Level Function)
Description: | Returns the number of formal parameters declared in a module. |
Returns: | Numeric |
Usage: | Script or steady state. |
Function Groups: | Compilation and On-Line Modifications, Advanced Module |
Related to: | NParm | NumParms | Parameter |
Format: | FormalParms(Module) |
Parameters: |
Module |
Required. 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.