pp108 : setMaxLength

setMaxLength


Sets the maximum length of the string

Syntax

stringFormatObj.setMaxLength(sMaxLength)

Parameters

Parameter

Description

sMaxLength

Required. The maximum length has 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.StringFormat");

var numberFormat = new StringFormat(elmt);
numberFormat.setMaxLength("10");

See Also


StringFormat, Locale