Hello,
Can someone try this code for me, please? If you are using English US it should return 1033; if you are using English UK you should get 2057. Don't want to mess up all my settings! Oh, it's a console app...
Thanks a lot,
Brian
ENDIF's in wrong place.
IF localeID=2057
PRINT "You are using British (United Kingdom)"
PRINT "Locale ID:"+STR$(localeID)
ENDIF
IF localeID=1033
PRINT "You are using British (United States)"
PRINT "Locale ID:"+STR$(localeID)
ENDIF
This worked and displayed US.
Bill
Thanks, Bill
1033 for me in west Texas
1044 here in Norway.
Egil
Thanks, all,
I will have to study the Locale IDs to set the best format for dates when the program loads up. Most countries either use DMY or MDY, and some countries use both formats
Brian
I have been playing with:
GetDateFormatA(2, 0, &st, "ddMMMyy", gdh, 256)
to get the ShortDate, but this does not come up with anything useful.
Bill