FormalParms
| 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.
