How to check if a Datatable is Null or Nothing
Preferred:
If dt Is Nothing Then ...
Is
-OperatorNothing
or (VB6 like)
If IsNothing(dt) Then ...
IsNothing Function
Preferred:
If dt Is Nothing Then ...
Is
-Operator Nothing
or (VB6 like)
If IsNothing(dt) Then ...
IsNothing Function