Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : MAX-CHARS attribute
 

MAX-CHARS attribute

(Graphical interfaces only)
The maximum number of characters an editor or combo-box widget can hold.
Data type: INTEGER
Access: Readable/Writeable
Applies to: BROWSE widget (column), COMBO-BOX widget, EDITOR widget
For editor widgets, you can set this attribute only before the widget is realized. In Windows, the maximum value of MAX-CHARS is approximately 20K for the regular editor and over 64K for the large editor.
For SIMPLE and DROP-DOWN combo-box widgets, you can set this attribute before or after the widget is realized. If the value of MAX-CHARS for a combo-box widget is zero or the Unknown value (?), the default value is 255 characters. This attribute is ignored for DROP-DOWN-LIST combo-box widgets.
Note: In character interfaces, editors can grow until the AVM runs out of system resources.
For browses, this attribute applies only to combo-box browse columns.