News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how to optain the decimal point

Started by stapper, November 13, 2010, 05:15:53 PM

Previous topic - Next topic

stapper

Hi,

Where can i find the the notation the local user use for the decimal point.
I am trying to make a numerical editbox thata aceepts only valid numbers also floating point values.


Kind regards


donkey

Use GetLocaleInfo with LOCALE_SDECIMAL.

invoke GetLocaleInfo, LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, Offset DecimalChar, 4

http://msdn.microsoft.com/en-us/library/dd318101%28VS.85%29.aspx

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

stapper