home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex46.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  251 b   |  12 lines

  1. Program Example46;
  2.  
  3. { Program to demonstrate the ParamCount and ParamStr functions. }
  4. Var 
  5.   I : Longint;
  6.   
  7. begin
  8.   Writeln (paramstr(0),' : Got ',ParamCount,' command-line parameters: ');
  9.   For i:=1 to ParamCount do
  10.     Writeln (ParamStr (i));
  11. end.
  12.