If var is empty

dpan

Active member
Joined
Nov 22, 2005
Messages
28
Programming Experience
Beginner
I just can't figure this out. I want to do something if my var is not empty.
somthing like this:

VB.NET:
if var1 is not "" then ' in other words if var1 is empty
do this...
end if
I just can't seem to figure out the right syntax
 
Ok found it. incase someone else needs this
VB.NET:
if var1.Length <> 0 Then
do stuff
end if
 
Back
Top