Euro symbol
Richmond
richmondmathewson at gmail.com
Tue Sep 17 09:07:02 EDT 2013
On 09/17/2013 03:48 PM, FlexibleLearning.com wrote:
> Has ANYONE solved how to maintain the euro symbol in a cross-platform stack?
>
> numtochar (Win 128|Mac 219) is platform-specific, and htmltext "¤" is
> Mac-only.
>
> Hugh Senior
> FLCo
>
>
> _______________________________________________
> 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
The Unicode standard for the Euro symbol is HEX 20AC / Decimal 8364.
Open a new mainstack with a field (let's call it "KODE")
and a second field (let's call it "DEKODE")
and a button . . . with this script:
on mouseUp
set the useUnicode to true
put fld "KODE" into KODE
set the unicodeText of fld "DEKODE" to numToChar(KODE)
end mouseUp
enter 8364 into field "KODE" and click the button . . . magic was never
so easy :)
and cross-platform at that!
[remember, when in doubt just reach for Unicode:
http://en.wikipedia.org/wiki/Euro_sign ]
Richmond.
More information about the use-livecode
mailing list