Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change numeral style
Message
 
To
26/09/2004 02:34:51
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00946068
Message ID:
00946131
Views:
11
Reza,

See if something similar to what is displayed below will help (here is how to set Metric Measurement System in Windows 98). Keep in mind that there can be different key combinations to get the very same Control Panel view and/or item in various Windows, and some settings require to reboot the PC. Also some settings require SET SYSFORMAT ON in VFP to use Windows settings instead of VFP settings.
oShell = CreateObject("WScript.Shell")
* invoke Control Panel, Regional Settings
oShell.Run("CONTROL.EXE intl.cpl")
lcWindowTitle="Regional Settings Properties"
lnstart=SECONDS()
DO WHILE SECONDS()-lnstart <60 AND NOT oShell.AppActivate(lcWindowTitle)
	WAIT WINDOW TIMEOUT 1.0 "Loading... Please, wait..."
ENDDO

IF oShell.AppActivate(lcWindowTitle)
        * Set Measurement System to Metric
	oShell.SendKeys("+{TAB}{RIGHT}{TAB 8}M{TAB 2}{ENTER}")
ENDIF

oShell=null
>Hi all
>I want to change numeral style with programming.( Start -> Settings -> Control Panel -> Regional Settings -> Numbers -> Numeral Style ====> Context/Hindi/Arabic/... )
>
>Can anyone help me?
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform