Returns the specified parameter passed to a routine.

Syntax

ARGVECTOR(<parameter expN>)

<parameter expN>

The number of the parameter to return. 1 returns the first parameter, 2 returns the second parameter, etc.

Description

Use ARGVECTOR( ) to get a copy of the value of a parameter passed to a routine. Because it is a copy, there is no danger of modifying the parameter, even if it was a variable that was passed by reference. For more information on parameter passing, see PARAMETERS.

ARGVECTOR( ) can be used in a routine that receives a variable number of parameters, where declaring the parameters would be difficult. ARGVECTOR( ) cannot be used within a codeblock.