rtfText twilight zone problem
josh at dvcreators.net
Thu Aug 14 18:09:56 CDT 2008
If you either download this stack:
or make one yourself:
1. create a field called "draft", and a field called "final" (and a
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":
ask file "where?"
put the rtftext of fld "draft" into URL ("file:" & it)
5. button "load":
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"
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
Weeeeird! Are we in the twilight zone?
More information about the use-livecode