CorString: IsNull

IsNull

Returns if the string is null.



 Public Function IsNull(
	  ByRef s As String ) As Boolean

Parameters

s
[ByRef] String. The string to be tested for null.

Return Values

Boolean -  True if the string pointer is null, False otherwise.

Remarks

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.

Examples

Public Sub Main()
    Debug.Print CorString.IsNull("")
    Debug.Print CorString.IsNull(vbNullString)
End Sub

'' The code produces the following output.
''
''    False
''    True

See Also

Project CorLib Overview

Class CorString Overview