How to: |
Used in conjunction with the MNTCON EX or MNTCON RUN –v syntax, the SYS_MGR.GET_INPUTPARAMS_COUNT function retrieves the number of positional parameters passed when invoking a Maintain procedure. If the function is not successful, FOCERROR is set to -1. For information on retrieving the value of a positional parameter, see the SYS_MGR.GET_POSITIONPARM function. See the MNTCON EX and MNTCON RUN commands for information on using the –v option to pass parameters.
The syntax for the SYS_MGR.GET_INPUTPARAMS_COUNT command is
Var/In = SYS_MGR.GET_INPUTPARAMS_COUNT();
where:
Is the name of the variable with an integer format that you are assigning to the output of the function.
MNTCON EX START1 –v abc, '24 Houston Center'
Target Maintain procedure START1 could include:
Posvar/i2=sys_mgr.Get_InputParams_count();
Here it returns 2 for the computed field Posvar, for positional parameters abc and 24 Houston Center.