WebTextControl.MaximumCharactersAllowed
From Xojo Documentation
Property (As Integer )
aWebTextControl.MaximumCharactersAllowed = newIntegerValue
or
IntegerValue = aWebTextControl.MaximumCharactersAllowed
New in 2020r1
Supported for all project types and targets.
or
IntegerValue = aWebTextControl.MaximumCharactersAllowed
New in 2020r1
Supported for all project types and targets.
The maximum number of characters allowed in the input area of the control.
Notes
The value of zero does not limit text. This property works for normal text entry, copy and paste, and drag and drop.
Sample Code
This code is in the Opening event of the control. It prohibits more than the specified number of characters:
Me.MaximumCharactersAllowed = 10