* string -> shortstring

This commit is contained in:
Michael VAN CANNEYT 2023-01-06 11:24:27 +01:00 committed by Michaël Van Canneyt
parent 32d55bb0ea
commit e50d90b7e9
3 changed files with 3 additions and 3 deletions

View File

@ -376,7 +376,7 @@ begin
Result:=AnsiString(ParamStrU(l)); Result:=AnsiString(ParamStrU(l));
end; end;
Function ParamStr(l:Longint): string; Function ParamStr(l:Longint): shortstring;
begin begin
if (l >= 0) and (l < argc) then if (l >= 0) and (l < argc) then
Result:=argv[l] Result:=argv[l]

View File

@ -435,7 +435,7 @@ begin
end; end;
function paramstr(l : longint) : string; function paramstr(l : longint) : shortstring;
begin begin
if argv=nil then if argv=nil then
setup_arguments; setup_arguments;

View File

@ -746,7 +746,7 @@ begin
paramcount := argc - 1; paramcount := argc - 1;
end; end;
function paramstr(l : longint) : string; function paramstr(l : longint) : shortstring;
begin begin
setup_arguments; setup_arguments;
if (l>=0) and (l<Fargc) then if (l>=0) and (l<Fargc) then