![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I tried to retrieve the digit grouping symbol in MSAccess but unfortunately 3;0 is retrieved instead of comma which is my symbol. Function retrieves decimal symbol and list separator without any problem. |
#3
| |||
| |||
|
|
I tried to retrieve the digit grouping symbol in MSAccess but unfortunately 3;0 is retrieved instead of comma which is my symbol. Function retrieves decimal symbol and list separator without any problem. I used the code below: var_char_copied = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, var_SYSTEM_DTG, Len(var_SYSTEM_DTG)) If var_char_copied > 0 Then var_SYSTEM_DTG = Trim(Mid(var_SYSTEM_DTG, 1, var_char_copied)) End If Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long Public Const LOCALE_SDECIMAL = &HE ' decimal separator Public Const LOCALE_SLIST = &HC ' list item separator Public Const LOCALE_SGROUPING = &H10 ' digit grouping Public Const LOCALE_USER_DEFAULT As Long = 0 Thanks a lot in advance! |
#4
| |||
| |||
|
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |