PARAM_VALUE$()

PARAM_VALUE$(N)

RETURNS THE NTH PARAMETER PASSED TO THE APPLICATION

  • Type: Function
  • Parameter: 1
  • Group: Reference

ACTION

The function PARAM_VALUE$(N) returns the Nth parameter passed to the application when it is called.

If there is no Nth parameter, the result is the empty chain.

Remark 1: the number of parameters passed to the application is in the system variable PARAM_NUMBER.

Remark 2: the keyword PARAM_VALUE$ ends by '$' : it means that the returned value is a string.

SYNTAX: Result$=PARAM_VALUE$(N)

  • N = rank of the parameter passed to the application when called.
  • Result$ is a string.

USE

  • The function PARAM_VALUE$() is used to know the parameters passed when the application is called.

ERROR

  • If N is not a correct expression.

EXAMPLE

print "number of parameters = "+str$(param_number)

print "first parameter = "+param_value$(1)

SEE ALSO

PARAM_NUMBER