pp108 : setCurrencyNegativePattern

setCurrencyNegativePattern


Sets the negative pattern for the currency

Syntax

localeObject.setCurrencyNegativePattern(sPattern)

Parameters

Parameter

Description

sPattern

Required. The negative 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.AmountFormat");

var localeObject = new Locale(sLocale);//sLocale --> "en-US"
localeObject.setCurrencyNegativePattern("$n-");//Will set "$n-" for locale "en-US"
//supported negative patterns ($n), -$n, $-n, $n-, (n$), -n$, n-$, n$-, ($ n), -$ n, $ -n, $ n-, (n $), -n $, n- $, n $-

See Also


Locale