VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



GetRegionalSetting

by Brad Skidmore (4 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

If you need to know what the Users Regional Settings are, This is a good Function / API combination I have made.
Get stuff like Decimal Separator, Day of the Week, or Month of the Year. This function will return Region Specific data.
EX. if your Regional setting is set to Spanish Monday will be Lunes
EX if your settings is set to German then the decimal separator will be a "," instead of a ".".

Inputs
You need to input a long which represents which settings you want (I have defined the most frequently used, but there are more)
Code Returns
Returns a String len < 100
Side Effects
NA

Rate GetRegionalSetting

Upload

Download this snippet    Add to My Saved Code

GetRegionalSetting Comments

No comments have been posted about GetRegionalSetting. Why not be the first to post a comment about GetRegionalSetting.

Post your comment

Subject:
Message:
0/1000 characters