WebTextField.LimitText

From Xojo Documentation

Property (As Integer )
aWebTextField.LimitText = newIntegerValue
or
IntegerValue = aWebTextField.LimitText

Supported for all project types and targets.

The maximum number of characters allowed in the WebTextField.

The value of zero does not limit text.

Example

Only allow the user to type up to 140 characters:

Me.LimitText = 140