DigiGuide Logo

Home » Development Area » DigiGuide Script » API Index » Class: System » getCountryCode Method

Class System : getCountryCode Method


String getCountryCode()

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

(Last updated: July 04, 2008 15:17:45)