Shell.CmdParamStr |
Top Previous Next |
Returns a specified parameter as passed on the command line.
Syntax function Shell.CmdParamStr(Index: integer): string
Description Returns the parameter as passed on the command line, corresponding to Index, or an empty string if Index is greater than the number of parameters available.
Values for Index count from 0 upwards, an Index of 1 returns the first parameter, a value of 0 returns the path and file name of the program.
The Return Value is a string value or empty if the Index is out of range.
See Also
Example execute UDSBlock returns (paramcnt integer, paramvalue varchar(1024)) as begin paramvalue = Shell.CmdParamStr(1);
/* returns the number of parameters and the first parameter */ end |