rtf Txt

Jeanne A. E. DeVoto revolution at jaedworks.com
Sun Oct 24 18:26:06 EDT 2004


At 2:03 PM +0200 10/24/2004, Klaus Major wrote:
>>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

...but then you have toasted the user's clipboard data, which is less 
good ;-). So it might be a good idea to save the clipboard in a 
variable first:

  put the clipboardData into myVar
   put URL ("file:" & pathtoRtfText) into txvariable
   set the clipboardData["rtf"] to txvariable
   put the clipboardData["text"] into txvariable
   set the clipboardData to myVar

-- 
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com


More information about the use-livecode mailing list