- 4.62.2.58 -
Standard Units
System Unit
System Unit Procedures and FunctionsParamCount 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.
|
|
|
Ord function |
Table of Content |
ParamStr function |
- 4.62.2.58 -