EditBox.MaxLength
The EditBox Control Object that is returned by the AddEditBox function has a MaxLength property. The MaxLength property represents the maximum number of characters permitted in the Edit Box.
Syntax |
ControlObject.MaxLength = Value Where ControlObject is the name of the variable (declared in your script) that is used to store the EditBox Control Object that is returned by the AddEditBox function. |
Description |
Sets the maximum number of characters for the Edit Box. |
Arguments |
Value {integer} Defines the maximum number of characters in the Edit Box. |
Returns |
Integer |
Example:
EditBox1.MaxLength = 40
Where:
- EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
- 40 is the maximum number of characters for the Edit Box.