VB: Check if Object is valid
Updated 2 years ago
Version 4.0It is good practice to test whether an object (typically returned by another function) is empty, before performing some operation on it:
'Substitute thisObject with your object's name
If thisObject IsNot Nothing Then
'...
End If