ARGC Variable - Command Argument Count
Syntax
ARGC
Description
PRO/5 can be invoked with user-defined command line arguments. These arguments are specified after all standard PRO/5 arguments, and are separated from the standard arguments by a single " – ". ARGC returns the number of user-defined command line arguments passed to PRO/5. If ARGC is greater than 1, PRO/5 was invoked with one or more user-defined command line arguments.
For additional information on setting the values returned by ARGC and ARGV(), see Invoking PRO/5, Command Line Options.
Example
Assume that PRO/5 is invoked by the following:
pro5 -m1024 menu.bbx – arg1 "second arg" >PRINT ARGV(1) >PRINT ARGV(2) |