CorString: IsNull |
Returns if the string is null.
Public Function IsNull( ByRef s As String ) As Boolean
This method is not equivalent to checking the length of a string for zero using the Len method. The method checks if the pointer to a string is null. A null string is uninitialized.
Public Sub Main() Debug.Print CorString.IsNull("") Debug.Print CorString.IsNull(vbNullString) End Sub '' The code produces the following output. '' '' False '' True