Importing Unicode text to a field .. How?

Richmond Mathewson richmondmathewson at gmail.com
Thu May 26 16:22:44 EDT 2011


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.




More information about the use-livecode mailing list