About CharToNum and Unicode...
Andre Garzia
soapdog at mac.com
Sat Jul 24 20:01:52 EDT 2004
On Jul 24, 2004, at 8:24 PM, Dar Scott wrote:
> I put just the option 2 into a field and ran this:
>
> on mouseUp
> get the unicodeText of field "field"
> set the useUnicode to true
> get the charToNum of it
> put baseConvert(it,10,16)
> end mouseUp
>
> I got 2122.
>
> Dar Scott
Dar,
Thanks for your reply! here it's not working. the text is not in a
field, it's that:
put "made with revolution ª" into tInitialValue
set the useUnicode to true
repeat with i = 1 to the length of tInitialValue
put char i of tInitialValue into tChar
put CharToNum(tChar) into tChar
put baseconvert(tChar, 10, 16) into tChar
put tChar into tArrayA[i]
end repeat
the array is all 0.... strange ain't it?
weird
andre
>
--
Andre Alves Garzia ð 2004 ð BRAZIL
http://studio.soapdog.org
More information about the use-livecode
mailing list