Re: Checking for A Blank String



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.
--

(O)enone


.



Relevant Pages

  • Re: Checking for A Blank String
    ... Herfried K. Wagner [MVP] wrote: ... contain an empty string: ... The code you posted would throw a 'NullReferenceException' in this case. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DLLs
    ... "Herfried K. Wagner [MVP]" wrote: ... > Your declare is wrong: ... > The VB.NET Resource Kit contains zipping functionality too: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: .NET equivalent for CRectTracker
    ... > functionality. ... Commercial component: ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: fso.deletefolder and recycle bin
    ... Herfried K. Wagner [MVP] wrote: ... all subdirectories. ... Why not use similar functionality from 'My.Computer.FileSystem.*' or ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: mailto
    ... extended by Herfried K. Wagner [MVP]: ... Imports System.Diagnostics ... Public Sub StartDefaultMail(_ ...
    (microsoft.public.de.german.entwickler.dotnet.vb)