SyntaxNothing DescriptionThe Nothing keyword represents an undefined instance of an object. Reference types that have not yet been assigned an instance have a value of Nothing. Value types never have a value of Nothing; they always have a value assigned. Assigning Nothing to a value type assigns that variable the default value for that type. For instance, in the statement: Dim unassignedValue As Integer = Nothing the unassignedValue variable is assigned zero, the default value for Integer variables. Usage at a Glance
See AlsoIs Operator, IsNot Operator, IsNothing Function |