last char, Unicode and other probs.

Robert Sneidar slylabs13 at me.com
Tue Dec 25 11:29:37 EST 2012


Did you try char -2 to -1? Isn't unicode 2 byte?

Bob


On Dec 25, 2012, at 5:46 AM, Richmond wrote:

> So here I am with a field full of unicodeText
> wanting to copy the last character across to another field,
> so tried these possibilities:
> 
> on mouseUp
>  set the useUnicode to true
>  set the unicodeText of fld "OOTPUT" to the last char of fld "INNPUT"
> end mouseUp
> 
> on mouseUp
>  set the useUnicode to true
>  put the charToNum(the last char of fld "INNPUT") into LSTCH
>  set the unicodeText of fld "OOTPUT" to numToChar(LSTCH)
> end mouseUp
> 
> and had no joy with either of them.
> 
> Any bright ideas would be welcomed; err, quite frankly, at this point the ideas don't
> even have to be bright, they just have to work.
> 
> Richmond.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list