Name
CmdLine Variable
Syntax
var CmdLine: PChar;
Description
The CmdLine
variable stores the command line that
was used to invoke the program. It is an empty string for libraries.
The ParamCount
and ParamStr
functions parse the command line into separate arguments; it is
usually more convenient to use these than to parse the entire command
line yourself.
To check for switches on the command line, call the
FindCmdLineSwitch
function in the
SysUtils
unit.
See Also
CmdShow Variable, ParamCount Function, ParamStr Function |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.