4. System Classes : EntryField Class : MaxCharacters Attribute
 
Share this page                  
MaxCharacters Attribute
Data Type: integer
4GL Access: R
The MaxCharacters attribute defines the maximum number of characters that a single-line entry field can contain.
OpenROAD sets this attribute to the maximum number of characters allowed by the field's format or data type when you create the field. The attribute is reset whenever the FormatString attribute is changed.
By setting the CharsPerLine attribute to the value of the MaxCharacters attribute, you can get an approximate match between the allowable number of characters in the field and the width of the field.