Previous: 4.74.2.11. FileSplit procedure To the Table of Contents Next: 4.74.2.13. GetArgStr function
4.74.2.11. FileSplit procedure Table of Contents 4.74.2.13. GetArgStr function

- 4.74.2.12. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.12. GetArgCount function


4.74.2.12. 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: 4.74.2.11. FileSplit procedure To the Table of Contents Next: 4.74.2.13. GetArgStr function
4.74.2.11. FileSplit procedure Table of Contents 4.74.2.13. GetArgStr function

- 4.74.2.12. -