Board index » delphi » Command Line Args
Phil Brutsche
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Command Line ArgsQuoteDaniel Gothe wrote: forward. The function paramcount returns a word containing the number of command-line parameters. The function paramstr returns a string containing the specified parameter. Say you have a program named test. Running the program as `test one two three`, paramstr (1) will return 'one', paramstr (2) will return 'two', paramstr (3) will return 'three'. IIRC paramstr (0) will return the name of the executable under DOS versions > 3.3. -- "Be of stout heart, Number One. We've handled the Borg. We can ---------------------------------------------------------------------- |