If you either download this stack:

http://revcoders.org/stacks/rtfWeirdness.rev.zip

or make one yourself:

1. create a field called "draft", and a field called "final" (and a couple buttons)


2. put some text in it, and colorize some words in that field (either with the menu or by scripting)


3. then save the rtfText of the field to a file


4. button "save":

ON mouseUp
    ask file "where?"
    put the rtftext of fld "draft" into URL ("file:" & it)
END mouseUp


5. button "load":

ON mouseUp
    answer file "which file?"
    put url("file:" & it) into t1

    set the rtftext of fld "final" to t1

    -- at this point it is visibly clear colors have changed

    put the rtftext of fld "final" into t2
    IF t1 <> t2 THEN answer "nooo"

END mouseUp


Do you get "nooo" every time? We do, on OS X, both PPC & Intel.

The variable t1 is always perfect... but once setting the rtfText of the field, it is set to a value VERY CLOSE, but NOT EXACTLY the variable.

Weeeeird! Are we in the twilight zone?
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to