base.Application.getArgument()

 

The getArgument() method returns the value of the specified argument. The method needs an integer specifying the argument position:

 

DEFINE i, ii INT,

        arg DYNAMIC ARRAY OF STRING

LET i = base.Application.getArgumentCount()

FOR ii = 1 TO i

LET arg[ii] = base.Application.getArgument(ii)

END FOR

 

The first argument of those passed to the application will have the position 1. The GetArgument() method returns the application name if the integer passed to it is zero.

 

Functionality of base.Application.getArgument() and base.Application.getArgumentCount() methods is identical to that of the arg_val() and num_args() functions.