Skip to content

Instantly share code, notes, and snippets.

Private Sub cmdChangeWindowsDecimalPointComma_Click()
Dim LCID As Long
LCID = GetSystemDefaultLCID()
Dim bOk As Boolean
Dim txt As String
txt = GetUserLocaleInfo(LCID, LOCALE_SDECIMAL)
bOk = SetLocaleInfo(LCID, LOCALE_SDECIMAL, ",")
Option Explicit
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Copyright ©1996-2011 VBnet/Randy Birch, All Rights Reserved.
' Some pages may also contain other copyrights by the author.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Distribution: You can freely use this code in your own
' applications, but you may not reproduce
' or publish this code on any web site,
' online service, or distribute as source