htmlText question

Mark Brownell gizmotron at earthlink.net
Sun Jan 4 12:57:41 EST 2004


On Sunday, January 4, 2004, at 04:38  AM, Doug Lerner wrote:

> set the htmlText of field "chatField" to the htmlText of field 
> "chatField" &
> "<p><b>test</b></p>"

Doug,

Try appending or transforming your HTML before setting the HTMLText.

put "" into field "maintext"
set the HTMLText of field "mainText" to "<p><b>test</b></p>"
put the HTMLText of field "mainText" into zap
put return & "<p>test</p>" after zap
set the HTMLText of field "mainText" to zap

put return & "word" after field "mainText"
put return & return & "test" after field "mainText"

put the HTMLText of field "mainText" into zap
put return & return & "<p><b><u>Test Word</u></b></p>" after zap
set the HTMLText of field "mainText" to zap

put the HTMLText of field "mainText"

<p><b>test</b></p>
<p>test</p>
<p>word</p>
<p></p>
<p>test</p>
<p><u><b>Test Word</b></u></p>

Mark Brownell



More information about the use-livecode mailing list