Previous: Ord function To the Table of Content Next: ParamStr function

- 4.62.2.58 -
Standard Units
System Unit
System Unit Procedures and Functions

ParamCount function

Targets: MS-DOS, OS/2, Win32


System Unit

Returns the number of parameters passed to the program on the command line.

Declaration:
function ParamCount: Longint;
Remarks:
Command line parameters are separated by spaces or tabs. To retrieve command line parameters call ParamStr.

Example:
{$ifndef __CON__}
  This program must be compiled as console application only
{$endif}
begin
  if ParamCount = 0 then begin
    WriteLn('No parameters specified.');
    Halt(1);
  end;
end.



Previous: Ord function To the Table of Content Next: ParamStr function
Ord function Table of Content ParamStr function

- 4.62.2.58 -