Checking if EditText is Empty

cbanks

Active Member
Licensed User
Longtime User
Right now I have the following code to detect if the EditText is blank. It works if there are no carriage returns. What should the code look like to detect the EditText is blank if there is nothing in the box other than carriage returns? Thanks.

If EditTextNotes.Text = "" Then
 

timwil

Active Member
Licensed User
Longtime User
I usually use VariableName.Text.Length to see how long a string is

If it is longer than zero then you can read it and check for chr(10)
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
I usually use VariableName.Text.Length to see how long a string is

If it is longer than zero then you can read it and check for chr(10)

Or use regex to check for any character other than chr(10), the "." does this.
 
Upvote 0
Top