'Tis very easy to do this:

on mouseUp
   replace "ZaX" with "XaZ" in fld "TEKST"
end mouseUp

and "ZaXbbdsfZvfghXaasn"

will magically become:

"XaZbbdsfZvfghXaasn".

So, clutching at straws, I tried this:

on mouseUp
   set the useUnicode to true
   replace (numToChar(2367)) with (numToChar(105))
end mouseUp

and, kaboom-diddy-boom-diddy-boom . . .

it replaced all the instances of Unicode char 2367 with an 'i' (whacko!!!!),

BUT . . .

it also did something "awful" with the rest of the text in the fld; as far as I can see
it 'deUnicoded' it.

tried the same sort of thing like this:

on mouseUp
   set the useUnicode to true
   replace (numToChar(2367)) with (numToChar(2311))
end mouseUp

and got a "right whoreson's".

So . . .

the next 'trick' is how to preserve the unicodeText as unicodeText,.

Cripes!

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