rtf Txt
Klaus Major
klaus at major-k.de
Sun Oct 24 08:03:28 EDT 2004
Hi Yves, Frank and Richard,
> Frank D. Engel, Jr. wrote:
>> create a field (it can be hidden), here I call it "xform":
>> set the rtfText of field "xform" to txvariable
>> put field "xform" into txvariable
>> Note that this will cause you to lose all formatting.
>> You can simplify it somewhat as follows:
>> set the rtfText of field "xform" to URL ("File:"&pathtoRtfText)
>> put field "xform" into txvariable
>
> Tip: If the field you're using for converting text is on a card that
> isn't open you'll get a performance boost of about 80% for that
> operation.
or simply let the system do the work via the clipboard :-)
...
put URL ("File:"&pathtoRtfText) into txvariable
set the clipboarddata["rtf"] to txvariable
put the clipboarddata["text"] into txvariable
...
:-)
> Richard Gaskin
> Fourth World Media Corporation
> ___________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
Best from sunny germany
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list