How to test for a number

Thierry Arbellot thierry.arbellot at wanadoo.fr
Wed Mar 16 11:37:18 EST 2005


On 2005, Mar 16, , at 17:28, Klaus Major wrote:

> Hi Jonathan,
>
>> Well, that brings up a possibility...
>>
>> Shouldn't there be a way to check for the system settings (perhaps in
>> the registry) and adjust for that in the script?
>
> sounds good :-)
>
> Any hints on how to do this on win and a mac?
>
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>

some hints to get the local decimal separator

MacOS

     do "get item 2 of (1.1 as string)" as appleScript
     put the result into theDecimalSeparator
     replace quote with empty in theDecimalSeparator

Windows 2000/XP

     put queryRegistry("HKEY_CURRENT_USER\Control 
Panel\International\sMonDecimalSep") into theDecimalSeparator

Thierry




More information about the Use-livecode mailing list