Float Delimeter
How, I can set in Win98 FloatDelimeter (.)?
11 posts
WriteRegStr HKU ".DEFAULT\Control Panel\International" "sDecimal" "."
WriteRegStr HKCU "Control Panel\International" "sDecimal" "."
Originally posted by scroseThis not work too :'(
Try HKCU instead of HKU.WriteRegStr HKCU "Control Panel\International" "sDecimal" "."
so use this:LOCALE_SDECIMAL
not tested, but should work.
; first, get current locale id, store it in $0
System::Call "Kernel32::GetUserDefaultLCID(v)i .r0"
; then, set the float delimiter to '.', $1 gets return value, should be 1 on success
System::Call "Kernel32::SetLocaleInfo(i r0, i 'LOCALE_SDECIMAL', t '.')i .r1
!define LOCALE_SDECIMAL 0xE
; first, get current locale id, store it in $0
System::Call "Kernel32::GetUserDefaultLCID(v)i .r0"
; then, set the float delimiter to '.', $1 gets return value, should be 1 on success
System::Call "Kernel32::SetLocaleInfo(i r0, i ${LOCALE_SDECIMAL}, t '.')i .r1