InList Parameter Mode |
You can define one InList parameter for all non-mandatory (variable) parameters of a method. For this InList parameter, define the Variable data type. There can only be one parameter with InList Mode, and this parameter must be the last one in the in-going parameter list. For COM components, the Variable data type is translated to VARIANT. For Java components, the Variable data type is an array of Objects. EXAMPLE: Suppose a CALCULATE component has a SUM method that adds up all parameters. The minimum number of parameters is two, and there is no maximum number. The statement: SELECT CALCULATE.SUM(2,3) must return: 5, and the statement: SELECT CALCULATE.SUM(2,3,7,4) must return: 16. For the SUM method, define parameters:
|