ParamStr (rtl)
Function ParamStr(index:Integer):String;
Cette fonction retrouve un paramètre passé sur la ligne de commande du programme.
| Result | Une chaine de caractère. |
| index | Index du paramètre. (1...) |
Exemple
function IsInDebug:boolean;
var idx:Integer;
begin
for idx:=1 to ParamCount-1 do
if ParamStr(i)='-debug' then
begin
Result := True;
Exit;
end;
Result := False;
end;
Voir aussi: