RosettaCodeData/Task/Null-object/VBA/null-object.vba

15 lines
280 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Public Sub Main()
Dim c As VBA.Collection
' initial state: Nothing
Debug.Print c Is Nothing
' create an instance
Set c = New VBA.Collection
Debug.Print Not c Is Nothing
' release the instance
Set c = Nothing
Debug.Print c Is Nothing
End Sub