V
Victory
Hi,
I am running into a problem which is best described with an example:
Dim aList as ArrayList = Nothing
...
if (aList IsNot Nothing) And (aList.Count > 0) then
....
This always gives me an exception. I have also tried switching the order
like:
if (aList.Count > 0) And (aList IsNot Nothing) then
...
and i get the same thing. I have had to break this into separate if
statements. Can anyone shed a light on this and explain why this does
not work?
thanks,
Mars
I am running into a problem which is best described with an example:
Dim aList as ArrayList = Nothing
...
if (aList IsNot Nothing) And (aList.Count > 0) then
....
This always gives me an exception. I have also tried switching the order
like:
if (aList.Count > 0) And (aList IsNot Nothing) then
...
and i get the same thing. I have had to break this into separate if
statements. Can anyone shed a light on this and explain why this does
not work?
thanks,
Mars