gulp, I didn't know that. Actually this is a behaviour that I would prefer to avoid.
Do you know a way to find out if an integer value is null, but distinguished from 0?
You can set an integer to DBNull (SQL null essentially) if you wish -
Dim myInt as integer = DBNull.Value
which is what a null integer coming from a database would be set to. if you are just coding, and not using a database, you could just manually set the integer to -1 and assume that as null, it really depends on the application though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.