How to test for a number

Thierry Arbellot thierry.arbellot at wanadoo.fr
Wed Mar 16 12:04:58 EST 2005


Oops, seems I'm wrong.

sMonDecimalSep specifies the symbol used to separate the decimal values  
in currency.

this page explains all registry keys:

http://www.microsoft.com/resources/documentation/Windows/2000/server/ 
reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/ 
server/reskit/en-us/regentry/69554.asp

On 2005, Mar 16, , at 17:53, Lynch, Jonathan wrote:

> 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
>
>
> _______________________________________________
> 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