Re: Checking for A Blank String
- From: Göran Andersson <guffa@xxxxxxxxx>
- Date: Sat, 10 Mar 2007 00:36:42 +0100
(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
.
- Follow-Ups:
- Re: Checking for A Blank String
- From: Herfried K. Wagner [MVP]
- Re: Checking for A Blank String
- References:
- Re: Checking for A Blank String
- From: Herfried K. Wagner [MVP]
- Re: Checking for A Blank String
- From: \(O\)enone
- Re: Checking for A Blank String
- Prev by Date: Re: vbNullString
- Next by Date: bindinglist(of T) bound to two controls
- Previous by thread: Re: Checking for A Blank String
- Next by thread: Re: Checking for A Blank String
- Index(es):