Structure Problem

  • Thread starter Thread starter Joshua Russell
  • Start date Start date
J

Joshua Russell

Hi,
I create a multiple instacne class (I beleive this is callecd a structure) with the following line of code:
private Convo[] convos = new Convo[100];

I want to be able to itterate through the 100 instances of the class and see which ones I have initialised.

Can anyone tell me how to do this... Also, is there anyone out there who can better explain my problem.



Thanx Josh
 
"Joshua Russell" <joshATojmyster|DOTukDOTTeuDOOTorgNOSPAM.PLZ> wrote in
message >news:[email protected]...
Hi,
I create a multiple instacne class (I beleive this is callecd a structure)
with the following line of >code:

It's called an array.
private Convo[] convos = new Convo[100];
I want to be able to itterate through the 100 instances of the class and
see which ones I have >initialised.

for (int i=0;i<convos.Length;i++)
{
if (convos != null)
{
//do something
}
}

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top