determine number in a collection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I determine whether a collection, in this case a class, has members or
is empty?

Thanks!!
 
I tried that but it doesn't seem to recognize "count". When I look at which
properties are available, I only see the user-defined properties in that
class. Is a class a special kind of collection?
 
No, a class is not a special kind of collection. On the contrary, you could
say that a collection is a special kind of class.

You're probably going to have to describe this object in rather more detail
before anyone can help you. Remember, all we know is what you've told us.
You told us it was a collection. Collections have a Count property. If your
object doesn't have a Count property, it's not a collection. What it is, I
can't tell you. Only you can answer that.
 
Brendan: Thanks for your incredible patience. I think it just uncovers the
fact that I don't actually know what I'm doing. I have just enough code from
someone who did that I keep getting myself in trouble. In any case, I solved
the issue by testing for "If not x Is Nothing Then" So I'm good for now.
Thank you!!
 
Back
Top