How to test for a number

Lynch, Jonathan BNZ2 at CDC.GOV
Wed Mar 16 11:53:34 EST 2005


Is the registry key: sMonDecimalSep
Different from: sDecimal
?

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Thierry
Arbellot
Sent: Wednesday, March 16, 2005 11:37 AM
To: How to use Revolution
Subject: Re: How to test for a number

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


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list