Previous: FileSplit procedure To the Table of Content Next: GetArgStr function

- 4.69.2.12 -
Standard Units
WinDos Unti
WinDos Unit Procedures and Functions

GetArgCount function

Targets: MS-DOS, OS/2, Win32


WinDos Unit

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

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

Example:
uses WinDos;
begin
  if GetArgCount = 0 then
    begin
      WriteLn('No parameters specified.');
      Halt(1);
    end;
end.



Previous: FileSplit procedure To the Table of Content Next: GetArgStr function
FileSplit procedure Table of Content GetArgStr function

- 4.69.2.12 -