setCurrencyCode |
Sets the currency code for the corresponding locale
Syntax
localeObject.setCurrencyCode(nrDigits)
Parameters
Parameter |
Description |
---|---|
nrDigits |
Required. The currency code as a string. |
Return Value
NA
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.setCurrencyCode("EUR");//Will set "EUR" for locale "en-US"