How can you check if an object is set to Nothing ??
the instruction
If obj = Nothing
does not work ..
Printable View
How can you check if an object is set to Nothing ??
the instruction
If obj = Nothing
does not work ..
IF obj = ""
You can use Is Nothing:
If MyObject Is Nothing Then
' do something
End If