Sorry; overlooked this thread until now.

---------------------------------------------------------

on mouseUp
   answer file "Choose an RTF file to import"
   if the result = "cancel"
   then exit mouseUp
   else
      set the useUnicode to true
      set the RTFText of fld "fRESULT" to URL ("file:" & it)
      END IF
end mouseUp

--------------------------------------------------------------------------

on mouseUp
   answer file "Choose an HTML file to import"
   if the result = "cancel"
   then exit mouseUp
   else
      set the useUnicode to true
      set the htmlText of fld "fRESULT" to URL ("file:" & it)
      END IF
end mouseUp

-------------------------------------------------------------------------

Richmond.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to