You've already forked lazarus-ccr
fpspreadsheet: Fix 2nd parameter of formula HYPERLINK
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3996 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -4087,11 +4087,20 @@ var
|
|||||||
cell: PCell;
|
cell: PCell;
|
||||||
fs: TFormatSettings;
|
fs: TFormatSettings;
|
||||||
dt: TDateTime;
|
dt: TDateTime;
|
||||||
|
p: Integer;
|
||||||
|
s: String;
|
||||||
begin
|
begin
|
||||||
Result := '';
|
Result := '';
|
||||||
case Arg.ResultType of
|
case Arg.ResultType of
|
||||||
rtString,
|
rtString : result := Arg.ResString;
|
||||||
rtHyperlink : result := Arg.ResString;
|
rtHyperlink : begin
|
||||||
|
s := Arg.ResString;
|
||||||
|
p := pos(HYPERLINK_SEPARATOR, s);
|
||||||
|
if p = 0 then
|
||||||
|
Result := s
|
||||||
|
else
|
||||||
|
Result := Copy(s, p + Length(HYPERLINK_SEPARATOR), Length(s));
|
||||||
|
end;
|
||||||
rtInteger : Result := IntToStr(Arg.ResInteger);
|
rtInteger : Result := IntToStr(Arg.ResInteger);
|
||||||
rtFloat : Result := FloatToStr(Arg.ResFloat);
|
rtFloat : Result := FloatToStr(Arg.ResFloat);
|
||||||
rtBoolean : if Arg.ResBoolean then Result := '1' else Result := '0';
|
rtBoolean : if Arg.ResBoolean then Result := '1' else Result := '0';
|
||||||
|
Reference in New Issue
Block a user