Dear TMS.
I'm working with HTMLTreelist, and I'm adding quite large childnodes.
I have investigated the reason why it not always behaves as expected, until I saw that the Node.text exceeded 255 characters.
I got the message "More than 255 characters in literal string".
Any idea if I want to add a child node containing more than 255 characters?
br.
Anders Balslev
I have retested this but could not reproduce this:
Test code inserting text of 2408 characters:
var
s:string;
i: integer;
tn: TTreeNode;
begin
s := '';
for i := 0 to 300 do
begin
s := s + inttohex(i);
end;
caption := length(s).ToString;
tn := htmltreelist1.Items.Add(nil,s);
htmltreelist1.Items.AddChild(tn,s);
end;
Hmmm - strange.
Actually - the compiler doesn't complain
-and no exception are raised
Bul actually - only a part of the code is executed.
Actually - the long string is:
--
var
s : string;
s:=
'23-10-2017 22:05| 6| 14,0 g| 14,05 g| 0| 1| 2| 0| <font color="clgreen" bgcolor = "clwhite" size="13"><b> +</b></font>| <font color="clwhite" bgcolor = "clblue" size="13"><b> * S * </b></font>| <font color="clBlack" bgcolor = "clFuchsia" size="13"><b> * S * </b></font>| <font color="clblack" bgcolor = "clYellow" size="13"><b> * S * </b></font>| <font color="clblack" bgcolor = "clRed" size="13"><b> * S * </b></font>'
htmltreelist1.Items.AddChild(tn,s);
..
(13 columns are defined), Column separator defined as '|' (pipe symbol)
In the above mentioned string - the part in non-bold type is executed correctly. The red bold text is not executed.
any idea?
br.
Anders
I have retested this here but I could not see a problem. The result is:
Do you use the latest version of the component?
Ok - not necessarily.
I have just now ordered upgrade to see if it's the problem
br.
Anders