Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 4:37
harold aptroot6-Feb-10 4:37 
AnswerRe: Change A Property Within The Foreach Loop Pin
BlitzPackage6-Feb-10 4:45
BlitzPackage6-Feb-10 4:45 
GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 5:12
harold aptroot6-Feb-10 5:12 
AnswerRe: Change A Property Within The Foreach Loop Pin
#realJSOP6-Feb-10 5:44
professional#realJSOP6-Feb-10 5:44 
GeneralRe: Change A Property Within The Foreach Loop Pin
OriginalGriff6-Feb-10 9:00
mveOriginalGriff6-Feb-10 9:00 
AnswerRe: Change A Property Within The Foreach Loop Pin
AspDotNetDev6-Feb-10 19:18
protectorAspDotNetDev6-Feb-10 19:18 
Questionforms & files [modified] Pin
jojoba20106-Feb-10 2:31
jojoba20106-Feb-10 2:31 
QuestionMulti dimension Array Not Working [Solved] Pin
Wamuti6-Feb-10 2:07
Wamuti6-Feb-10 2:07 
I want to initialize the values of a multi dimension array. Instead of this:

string[,] arr = {{"charles","mary","moses"},{"erik","ann","grace"}};


I'd want to do this:

string[] class1 = new string[3];
string[] class2 = new string[3];
class1[0] = "charles";
class1[1] = "mary";
class1[2] = "moses";
class2[0] = "erik";
class2[1] = "ann";
 class2[2] = "grace";
string[,] arr = {class1,class2};


This is not working. It gives the error:

Invalid rank specifier: expected ',' or ']'


In the last line. The reason is that i have the values for the multi dimension array in single dimension arrays. What can i do to load Multi-Dimension Values like the above from single dimension arrays?
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

modified on Saturday, February 6, 2010 9:45 AM

AnswerRe: Multi dimension Array Not Working Pin
harold aptroot6-Feb-10 2:18
harold aptroot6-Feb-10 2:18 
QuestionProblem with Interface? Pin
mdrizwan_15-Feb-10 23:13
mdrizwan_15-Feb-10 23:13 
AnswerRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:24
professionalEddy Vluggen5-Feb-10 23:24 
GeneralRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:29
mveOriginalGriff5-Feb-10 23:29 
GeneralRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:38
professionalEddy Vluggen5-Feb-10 23:38 
AnswerRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:28
mveOriginalGriff5-Feb-10 23:28 
AnswerRe: Problem with Interface? Pin
Md. Marufuzzaman6-Feb-10 0:14
professionalMd. Marufuzzaman6-Feb-10 0:14 
AnswerRe: Problem with Interface? Pin
Luc Pattyn6-Feb-10 1:49
sitebuilderLuc Pattyn6-Feb-10 1:49 
AnswerRe: Problem with Interface? Pin
#realJSOP6-Feb-10 2:03
professional#realJSOP6-Feb-10 2:03 
Questionc# Pin
bahar35-Feb-10 23:07
bahar35-Feb-10 23:07 
QuestionRe: c# Pin
Eddy Vluggen5-Feb-10 23:17
professionalEddy Vluggen5-Feb-10 23:17 
AnswerRe: c# Pin
OriginalGriff5-Feb-10 23:32
mveOriginalGriff5-Feb-10 23:32 
AnswerRe: c# Pin
mdrizwan_15-Feb-10 23:33
mdrizwan_15-Feb-10 23:33 
AnswerRe: c# Pin
Mycroft Holmes6-Feb-10 0:06
professionalMycroft Holmes6-Feb-10 0:06 
AnswerRe: c# Pin
Md. Marufuzzaman6-Feb-10 0:33
professionalMd. Marufuzzaman6-Feb-10 0:33 
AnswerRe: c# Pin
#realJSOP6-Feb-10 2:03
professional#realJSOP6-Feb-10 2:03 
AnswerRe: c# Pin
Brij6-Feb-10 7:16
mentorBrij6-Feb-10 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.