numToChar with socking great numbers
Richmond
richmondmathewson at gmail.com
Mon Jan 13 05:19:13 EST 2014
On 13/01/14 01:43, Fraser Gordon wrote:
> You need two numToChar calls:
>
> numToChar(55357)+ numToChar(56832)
>
> The Unicode engine will fix this with a new call that handles surrogate
> pairs automatically and invisibly but numToChar will probably have to
> retain the mod-65536 behaviour for compatibility.
>
> Regards,
> Fraser
>
>
So I did this:
on mouseUp
set the useUnicode to true
set the unicodetext of fld "ffff" to numtoChar(55357) + numToChar(56832)
end mouseUp
and got this:
button "Button": execution error at line 3 (Operators +: error in left
operand), char 56
something obviously not quite right.
Richmond.
More information about the use-livecode
mailing list