how to check whether an integer type variable doesnt store anything?

like:

Dim Count As Integer

If Count = NOT NULL Then
.....

but in vb.net 2005,there is no NULL allowed..

Thanks for helping..

Recommended Answers

All 2 Replies

Try this:

Dim a As Integer
        If a = Nothing Then MessageBox.Show("a is nothing")

set count to 0

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.