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, [email protected] 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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to