Paramstr

Declaration:
Function ParamStr(Param : Integer) : Ansistring;
Description:
ParamStr returns the Param-th command-line parameter as an AnsiString. The system unit Paramstr (544) function limits the result to 255 characters.

The zeroeth command-line parameter contains the path of the executable, except on LINUX, where it is the command as typed on the command-line.

Errors:
In case Param is an invalid value, an empty string is returned.
See also:
Paramstr (544)

For an example, see Paramstr (544).