Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function ParamCount: integer
Returns the number command-line parameters.
Delphi uses space character to break command line parameters; use double quotes around text that contains space characters (long file names).
var i: integer;
s
for i:=1 to ParamCount do
ShowMessage(i +') parameter: ' + ParamStr(i));
|
Run with Parameters
How to pass command-line parameters to your Delphi application and how to handle them.
ParamStr,
CmdLine,
FindCmdLineSwitch
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|