pp108 : setGroupSeparator

setGroupSeparator


Sets the number group separator for the corresponding locale

Syntax

localeObject.setGroupSeparator(separator)

Parameters

Parameter

Description

separator

Required. The number group separator.

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.setGroupSeparator(",");//Will set the group separator for locale "en-US" as ","

See Also


Locale, Locales