String.IsEmpty

From Xojo Documentation

Revision as of 17:39, 31 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.