if ParamCount > 1 then if ParamStr[1] = '-s' then .....
帮帮我,代码如下: if ParamCount > 1 then begin if ParamStr[0] = '-s' then ////此行编译错:[Error] Not enough actual parameters// begin form1.Timer3.Enabled := true; end;
帮帮我,代码如下: if ParamCount > 1 then begin if ParamStr[1] = '-s' then ////此行编译错:[Error] Not enough actual parameters 改成1,也是错的// begin form1.Timer3.Enabled := true; end;
paramstr(1)='-s'look up the reference of 'paramstr'
谢谢
谢谢
谢谢
if ParamStr[1] = '-s' then
.....
if ParamCount > 1 then
begin
if ParamStr[0] = '-s' then ////此行编译错:[Error] Not enough actual parameters//
begin
form1.Timer3.Enabled := true;
end;
if ParamCount > 1 then
begin
if ParamStr[1] = '-s' then ////此行编译错:[Error] Not enough actual parameters 改成1,也是错的//
begin
form1.Timer3.Enabled := true;
end;
paramstr(1)='-s'////编译通过,但不起作用
该如何判断呢
其余的在不明白我就无话可说了