pp108 : setLegalCharacterSet

setLegalCharacterSet


Sets the legal character set for the string

Syntax

stringFormatObj.setLegalCharacterSet(sLegalCharSet)

Parameters

Parameter

Description

sLegalCharSet

Required. The legal character 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.StringFormat");

var stringFormat = new StringFormat(elmt);
stringFormat.setLegalCharacterSet("[\s#\/\"\'&%^@!|\>\<\=\;\?\(\)$+*-]");

See Also


StringFormat, Locale