# ATTR_MAX_ENTRY_CHARS (Control)

Type: | Control attribute
Description: | The maximum number of characters that can be entered into a string or text box control. In this context, a dual-byte character counts as 1. If you want to restrict the string or text box control to a specific number of bytes, you should use ATTR_MAX_ENTRY_LENGTH. If you use both attributes, CVI applies the more restrictive of the two values. When used on a table, it refers to the default state of new cells when ATTR_TABLE_MODE is set to VAL_GRID. A (-1) value means no limit.
Control Types: | Strings, tables, text boxes.
Data Type: | integer
Valid Range: | -1 or greater
Default Value: | -1