parm

Pass function parameters or assign them to group variables.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

void parm([start[,count]])
int       start,count
or
group parm([start[,count]])
int        start,count

Description

References the function's or trigger's incoming parameters for use in a called function. If start is not specified, then all of the incoming parameters are used. start with no count means all incoming parameters beginning at zero-based index start are used and start,count means count incoming parameters beginning at zero-based index start.

The parameters may also be directly assigned to group variables.

Examples

Function/Trigger oldfunc is called as oldfunc(1,"There",56).
newfunc("hello",parm());            /* newfunc("hello",1,"There",56)           */
newfunc(parm(2,1),parm(0,2));       /* newfunc(56,1,"There")                   */
newfunc(parm(),parm());             /* newfunc(1,"There",56,1,"There",56)      */
[a,b,c] = parm();                   /* a=1, b="There", c=56                    */