Empty string

  • Thread starter Thread starter tinman
  • Start date Start date
T

tinman

Hi...

Is there a .NET equivalent to VB6's vbNullString ? If not, how do we set a
string to NULL?

Is the following 1 & 2 equivalent:

Dim Test as String

1. Test = String.Empty
2. Test = ""
 
tinman said:
Hi...

Is there a .NET equivalent to VB6's vbNullString ?

Use "symbol search"
If not, how do we
set a string to NULL?

A string is never Null. A string variable is either Nothing, or it points to
a String with any length (including zero length).
Is the following 1 & 2 equivalent:

Dim Test as String

1. Test = String.Empty
2. Test = ""

Yes.
 
Back
Top