Jump to content

Checking for NULL on object data


fr33kyd33ky
 Share

Recommended Posts

I'm trying to come up with a way to check all reader data for NULL and change it to a string such as "None". But I don't want to have to add RunASub(CheckForNull(objReader("MyData")) to every database object. So what I'm thinking is adding something similar to Button.NullText = RunASub(objReader("MyData")) which will check for the NULL and return a string if instead of the reader if it's NULL. is this possible? is there already a simple way of dealing with this?

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...