Visualization > Commands > Define Key Sequences for Commands > Passing Multiple Arguments

Passing Multiple Arguments

You can pass multiple argumentsValues (or variables) passed in a key sequence to a keyboard command in runtime (as operator input). Arguments can also be the values (or variables) passed to a Cicode function when it executes. into a Cicode command by separating each argument with a comma (,). Each argument is passed into the command in sequence, and is referred to in the command field as Arg1, Arg2, Arg3, and so on. For example:

Key Sequence

F3 ###, ### Enter

Command

SP1 = Arg1; SP2 = Arg2;

In this case, an operator can set two variables with the same command, for example:

sets the variables SP1 to 20 and SP2 to 35.

You can use up to eight arguments. However, avoid passing many arguments.

Note: There is no way to check if the input for each argument is valid (see example below).

See Also

Published June 2018