Returns the Locale ID used by automation and ActiveX controls.
Syntax
SYS(3004)
Returns
Character
Remarks
SYS(3004) returns the current Visual FoxPro Locale ID (LCID), which is determined by the Visual FoxPro Language ID (LangID) and Sort ID.
The Locale ID determines the language in which automation and ActiveX controls exchange information. The default Visual FoxPro Locale ID is 1033, English.
For example, assume you have installed the German version of Microsoft Excel 5.0, which supports both English and German commands. In this case, the following example allows you to start and close the German version of Microsoft Excel 5.0:
oleExcel1 = CREATEOBJECT('Excel.Application') && Starts Excel
? SYS(3005, 1033) && English Locale ID
oleExcel.Quit && Closes Excel with English command
oleExcel2 = CREATEOBJECT('Excel.Application') && Starts Excel
? SYS(3005, 1031) && German Locale ID
oleExcel.Beenden && Closes Excel with German command
For a list of Visual FoxPro Locale IDs, see SYS(3005) - Set Locale ID. For additional information about Locale, Language, and Sort IDs, see the Microsoft Windows Software Development Kit documentation.