String.IsEmpty

From Xojo Documentation

Method

IsEmpty() As Boolean

New in 2019r3

Supported for all project types and targets.

Returns True if the String is empty.

Notes

This is equivalent to String.Length = 0.

Examples

Check if the user entered data in a TextField:

If TextField1.Value.IsEmpty Then
MessageBox("Please enter a value in the field.")
End If

See Also

String for a complete list of functions.