On 12/25/2012 06:29 PM, Robert Sneidar wrote:
Did you try char -2 to -1? Isn't unicode 2 byte?

No, I didn't; but, as per my usual tendency, i found a way to do what I wanted to do about
5 minutes after I posted:

on mouseUp
  set the useUnicode to true
---not entirely sure whetjer that line is necessary--
  copy the last char of fld "INNPUT"
set the traversalOn of fld "OOTPUT" to true
--that may also be unecessary--
  put empty into fld "OOTPUT"
  select after fld "OOTPUT"
  paste
end mouseUp


Certainly works with a field full of Devanagari chars [think numToChar(2325) - numToChar(2400)]


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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
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


_______________________________________________
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

Reply via email to