Override regional settings in VB6
Posted on 2006-05-08
Need functions such as CDate etc to use Regional settings other than those in the current locale settings but I don't want to change the system settings.
i.e. Date seperator on the local pc is "." (Germany) but I want the VB code to use "/" (English) as the date seperator.
While other languages (VB.net, Delphi) will allow the locale settings to be overwritten within tha application I can't find any method to do this in VB6.
Note: While aware of how to read and change the system regional settings within VB6 I only want to change them for this specific applications, I don't want to affect other applications running on this PC.