Nothing (constant)

Description

A value indicating that an object variable no longer references a valid object.

Example

Sub Main()
  Dim a As Object
  If a Is Nothing Then
    MsgBox "The object variable references no object."
  Else
    MsgBox "The object variable references: " & a.Value
  End If
End Sub

See Also

Set (statement); Object (data type).

More information

N