pp108 : setCurrencySymbol

setCurrencySymbol


Sets the currency symbol for the corresponding locale

Syntax

localeObject.setCurrencySymbol(symbol)

Parameters

Parameter

Description

symbol

Required. The currency symbol.

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.setCurrencySymbol("€");//Will set "€" for locale "en-US"

See Also


Locale, Locales