views:

27

answers:

1

I'm getting nothing with this:

mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>';

Maybe it has something to do with the quotes? the text will be retrieved from a database. I dont see what I am doing wrong

EDIT:

I think it's the way I calculate the number of lines in the string... How would I calculate the amount of lines using rich text?

A: 

try this one:

mainAns.htmlText = ='<![CDATA[
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>
]]>';

How would I calculate the amount of lines using rich text?

why do you need this?

Eugene