Having some [probably simple] troubles...

Sep 4 2005 10:51 PM
Well, I am very inexperienced, and young, so hopefully you'll forgive me if I made a silly mistake. I can't think of anyway to describe the problem without showing code so...here it goes.

string[] ContentsArray = contents.Split(SplitChars);
MessageBox.Show(ContentsArray.Length.ToString());
int q = 0;
for (int x = 0; x < ContentsArray.Length; x++)
{
int m = x % 6;
Quiz[q] = new String[6];
Quiz[q][m] = ContentsArray[x];
if (m == 5) q++;
}

What this should do is get the values from Contents Array into Quiz. It's doing everything it's supposed to when I test it inside the loop, but when I try to get anything out of the Quiz array outside of the loop, it's empty.

Um...I didn't do a very good job of explaining. Sorry... :-( Let me know if you want me to clarify anything...

Thanks in advance!
Bernlomnty