From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aWebTextControl.MaximumCharactersAllowed = newIntegerValue
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.


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