Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.176 MaxLength Property

Description:

Defines the maximum number of characters to be input.

Used in control(s):

Edit

TextBox

Value:

Edit

The maximum number of characters.

The value is an integer greater than zero.

A value of zero means there is no limit.

TextBox

The maximum number of characters.

The value is an integer greater than zero.

A value of zero means there is no limit.

If you press the ENTER key, it corresponds to 2 characters when the MultiLine property is True.

If the RenderStyle property is not "0 - Standard", setting MaxLength to a value greater than the number of characters specified in the PictureString in the RenderText property page has no effect.

The setting of the MaxLength property is unrelated to the generation of the Return event.

Default value:

0 (there is no limit)

COBOL picture:

S9(9) COMP-5

OLE data type:

VT_I4

Design time access:

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attribute:

None.