Class System : getCountryCode Method
Summary
Gets the abbreviated country system locale setting from the Windows installation.
Remarks
Interrogates the system locale for the selected country chosen in Windows Regional Settings.It uses the Windows LOCALE_SABBREVCTRYNAME option for determining this. This is useful for providing alternate spellings for menu commands or script functions.
Returns
Returns the country string stated in Windows Regional Settings.
Examples
Code below gets the current country code and uses a different spelling accordingly:var strName = "Favourite"; if( system.getCountryCode().toUpperCase() == "USA" ) { strName = "Favorite"; }
|
Requirements
Build 1064
|