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 ARGC
3

>PRINT ARGV(1)
arg1

>PRINT ARGV(2)
second arg


See Also

Variables - Alphabetical Listing