Sign in to follow this  

VB6 - checking if a variable is set

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm cleaning up some old Visual Basic 6 code at work and I've run into a problem of someone not checking if an ADO recordset is set (with new, or set) or not. Being used to C++ I tried isNull, but that doesn't seem to work here in VB. Neither does isSet. I tried IsEmpty, var = Nothing, IsObject, but none tell me if the variable is set or not. So, what function would I need to see if the object is set or not?

Share this post


Link to post
Share on other sites

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this