Call

Description:              This statement starts an instance of the module specified by its first parameter.

Returns:                    Nothing

Usage:                       Script or Steady State

Format:                      Call(Module [,Parm1, Parm2, Parm3, …])

Parameters:             Module    { Module }  { required }  { no default: }

                                                Specifies the module that is to be started.

                                    Parm1, Parm2, Parm3, …    { text }  { optional }  { no default: }

                                                Are optional expressions passed to the module that is being started.

Comments:               The additional parameters that are specified are passed to the started module as parameters to the call.

Example:

ZEditField(10, 40, 110, 10, mod, 32, 0, 1);

If Valid(mod) && ! Valid(x);

[

  x = FindVariable(mod, Self(), 0, 1);

]

...

Call(x);

This section of code allows the user to enter a module name into the edit field, which will then be located by the script and started by the Call statement. Notice that in this particular example, no parameters are passed to the module, however, more edit fields could be created to accept variables or values to use as parameters to the module by entering them in the Call statement.

See Also:

FindVariable | Self