◄Summary► ◄Details► ◄Example► ◄Back► Returns Word Number of command-line parameters Description The ParamCount function returns the number of parameters passed on the command line to the current program. ParamCount returns an integer greater than or equal to zero. The return value gives the number of parameters in the parameter list, equal to the index of the last parameter in the list. ParamCount returns 0 if the program was executed without parameters. A command to execute a program passes zero or more command-line parameters, separated by spaces or tabs. These parameters communicate information to be used by the program. Execute a program either by entering the program name plus parameters at the DOS command-line prompt or by passing the program name and parameters to the Exec procedure. Separate the command-line parameters with spaces or tabs. Use the ParamStr function to retrieve a particular parameter from the command line.