From Xojo Documentation


Text.Empty() As Boolean

Supported for all project types and targets.

Returns whether or not the text has contents. This will always be as fast or faster than checking length against zero. Returns True when the text is empty, False when it is not.

Sample Code

Check if a text value is empty:

Dim t As Text = ""

If t.Empty Then
t = "Hello"
End If