Difference between revisions of "String.IsEmpty"

From Xojo Documentation

(Created page with "n/a")
 
 
Line 1: Line 1:
n/a
+
{{MethodBox
 +
| name=IsEmpty
 +
| owner=[[String]]
 +
| platform=all
 +
| scope=global
 +
| returntype=[[Boolean]]
 +
| newinversion=2019r3
 +
}}
 +
{{Description
 +
|text = 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:
 +
 
 +
<rbcode>
 +
If TextField1.Value.IsEmpty Then
 +
  MessageBox("Please enter a value in the field.")
 +
End If
 +
</rbcode>
 +
 
 +
==See Also==
 +
[[String]] for a complete list of functions.
 +
 
 +
[[Category:Text_Strings]]

Latest revision as of 17:39, 31 October 2019

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.