[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ParamCount               Returns Number of Parameters on Command Line

 ParamCount : Integer;                                                   [TP]

    Returns the number of parameters on the command line when the program
    was executed. If running within Turbo Pascal, the command line can be
    set with the Parameters command within the compiler Options menu. If
    running from the MS-DOS prompt, the command line consists of any text
    following the name of the file being executed.

           Note:    Tabs and spaces are parameter separators. Redirection
                    and Piping are handled by the operating system and
                    this information is not passed to the program.

  -------------------------------- Example ---------------------------------

           { Display the command line parameters one at a time }
           for I := 1 to ParamCount do
              Writeln (ParamStr(I));

See Also: ParamStr
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson