HTMLText question

Jerry Daniels jerry.daniels at me.com
Tue Dec 15 15:41:24 EST 2009


You need a field for setting HTMLtext.

Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-manage-your-audio-clips


On Dec 15, 2009, at 2:33 PM, dunbarx at aol.com wrote:

> Can I use the HTMLText property in a variable?
>
> In other words, why does this fail with an error?
>
> on mouseup
>    get fld "myField" --has a few words in it
>    set the htmlText of word 2 of it to "<box>word 2 of it</box>"
>    set the htmltext of fld "myField" to it
> end mouseup
>
> Only field references allowed?
>
> This seems to indicate that only a literal can be used when setting  
> the
> tags:
>
> on mouseup
>    get fld "myField" --has a few words in it
>    set the htmlText of word 2 of field "myField" to "<box>word 2 of  
> it<
> /box>"
> end mouseup
>
> You get "word 2 of it", nicely boxed.
>
> Thanks. I am still a newbie.
>
> Craig Newman
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list