pp108 : setIllegalCharacterSet

setIllegalCharacterSet


Sets the illegal character set for the string

Syntax

stringFormatObj.setIllegalCharacterSet(sIllegalCharSet)

Parameters

Parameter

Description

sIllegalCharSet

Required. The illegal 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.setIllegalCharacterSet("[\s#\/\"\'&%^@!|\>\<\=\;\?\(\)$+*-]");

See Also


StringFormat, Locale