Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 get/set locale info

Status
Not open for further replies.

lrmelburn

IS-IT--Management
Mar 16, 2004
1
CA
I have developed a VB6 app that calls a crystal report (8.5)
from an Oracle RDBMS (8.1). It works on a Windows 2000 workstation. I need code to get and set the regional settings, as the app appears only to work with Canadian settings.

I need a way to capture the existing settings when the main form is activated, change it to Canadian locale, then change it back to whatever was previously there on form exit.
 
If you're sure you need to do that, then start from here:

Be aware that your users will get a bit upset if they expect to use a comma as a decimal separator, and you have reset the locale to only accept a period. Similar problem with dates, keyboard layout etc etc

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top