base.Application.getArgument()

getArgument() is used to return the value of the specified argument. The method requires a single argument

Syntax:

base.Application.getArgument(integer)

Usage example:

MAIN
 DEFINE i, ii INT

  LET i = base.Application.getArgumentCount()
  FOR ii = 0 TO i
    DISPLAY base.Application.getArgument(ii)
  END FOR
END MAIN

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

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

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.