Re: Checking for A Blank String



(O)enone wrote:
Herfried K. Wagner [MVP] wrote:
If you want to check if your variable is not 'Nothing' and does not
contain an empty string:

\\\
If Len(s) > 0 Then
...
End If
///

This is my recommended way too. For all the new features and functionality offered in .NET, I'll still go for good ol' Len() every time.

The Len function is just a wrapper for the String.Length method.

If s.Length > 0 Then
...
End If

--
Göran Andersson
_____
http://www.guffa.com
.