8.4.4 Named Parameters

All parameters of methods, keyed properties and function library routines are named. When invoking such a routine as an operation in an expression, usually you would code:

Invoke #COM_OWNER.MethodOne ParmOne(1) ParmTwo(2) ParmThree(#RESULT)

The same result could be achieved using an assignment statement and the following syntax:

#RESULT = #COM_OWNER.MethodOne( 1, 2 )

If ParmOne is optional and you want to use the default, you  can simply pass a value for ParmTwo without specifying a positional value for parameter ParmOne by specifying ParmTwo by name:

#RESULT = #COM_OWNER.MethodOne( ParmTwo := 2 )
#RESULT = #COM_OWNER.MethodOne( ParmTwo := ((#A + #B) * #C) )