Hi Richmond,
It doesn't work because the first char actually gets the first byte and thus
you only get the first half of the first character.
This might work, depending on the textFont setting and maybe writing direction:
on mouseUp
set the unicodetext of fld "xxx" to char 1 to 2 of the unicodetext of
fld "zzz"
end mouseUp
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4
A must-have for LiveCode programmers.
On 13 aug 2011, at 15:43, Richmond Mathewson wrote:
> Anybody know why this doesn't work:
>
> on mouseUp
> set the useUnicode to true
> set the unicodeText of fld "XXXX" to the first char of the unicodeText of fld
> "ZZZZ"
> end mouseUp
>
> ???
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode