G
Guest
How do I check if an object is null in vb? I tried using IsDBNull but it
doesn't work at all. It gives me this error when I try statement like If Not
IsDBNull(theStock.WIPQty) Then:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
doesn't work at all. It gives me this error when I try statement like If Not
IsDBNull(theStock.WIPQty) Then:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.