getCurrencyCode |
Returns the currency code for the corresponding locale
Syntax
localeObject.getCurrencyCode()
Parameters
NA
Return Value
Returns the currency code
Example
The following example displays how this method is used.
importType("wcp.library.util.LocaleFormat"); importType("wcp.library.util.Locale"); var localeObject = new Locale(sLocale);//sLocale --> "en-US" localeObject.getCurrencyCode();//Will return "USD" for locale "en-US"