HTMLtext problem

Lynch, Jonathan bnz2 at cdc.gov
Thu Jul 21 11:03:43 EDT 2005


If the text is inheriting its textfont, textstyle, textsize, etc... from
an object higher up in the message path, then that information would not
be kept in the htmltext.

You can do something like this:
Put the effective textstyle of char 5 of field "myField" into
tMyVariable

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
charles.silverman at mac.com
Sent: Wednesday, July 20, 2005 8:50 PM
To: use-revolution at lists.runrev.com
Subject: HTMLtext problem

I need to get an accurate record of the text styles within a field  
but htmlText doesn't seem to report everything.

If "This is a test" is entered into a field without any changes, I  
get...

                 <p>this is a test</p>

Font, size, style and color information is not reported.


It seems that I have to change the font, size, color and style of  
some selected text within the field to something other than the  
default settings to get the additional style information. For  
example, once I've made these changes, the following now gets reported:

         <p><font face="Arial Black" size="14"  
color="#FF0000"><u>this is a test</u></font></p>

Is there a simpler way to get this to happen?

Thanks!
Charles

_______________
Charles Silverman
www.captionweb.ca

_______________________________________________
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