setCurrencyPositivePattern |
Sets the positive pattern for the currency
Syntax
localeObject.setCurrencyPositivePattern(sPattern)
Parameters
Parameter |
Description |
---|---|
sPattern |
Required. The positive pattern to be set. |
Return Value
No return value
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.setCurrencyPositivePattern("$ n");//Will set "$ n " for locale "en-US"