Skip to main content
Participant
February 29, 2008
Question

AppendText in HTML format?

  • February 29, 2008
  • 1 reply
  • 291 views
I am working on an AIR app and I am almost there...I have a simple sql query sending back data via a SELECT, I can trace the results and I can feed them to a TextArea. What I want to do is format that textArea as HTML.

when I set the TextArea.htmlText attribute it deletes my return...

So what I need to do is append the results as html formatted text in the TextArea.

Is it possibe, and if not, what other options do I have.
Thanks in advance.


This topic has been closed for replies.

1 reply

Participating Frequently
June 13, 2008
You can use ' += ' to append text, but each time it will be appended as a new line due to the <p> tags that get added automatically to the html-formatted string. You'll need to use one of the string functions (ie: slice) if you want the appended text to appear on the same line.