TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bernlomnty
NA
1
0
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
Reply
Answers (
0
)
Any answer please, even say "No Way"
Assign a string to the item in listbox