Perfect, I will give this a go.
Thanks for the help....
User Profile
Collapse
-
Thank you for the help, I am just a bit lost on how to display both of the parts below:
string[,] myarray = {{"TestArray1Part 1", "TestArray1Part 2"},{"TestArray2P art1", "TestArray2Part 2"}};
In the same foreach statement. At present I am using the following statement:
foreach (string bothparts in myarray)
{
MessageBox.Show (bothparts);
}...Leave a comment:
-
Help with multidimensional array please
I have created a multidimensiona l array as follows:
string[,] myarray = {{"TestArray1Pa rt1", "TestArray1Part 2"},{"TestArray 2Part1", "TestArray2Part 2"}};
Basically what I want to do is show a message box which will display the first two parts of the array (TestArray1Part 1 & TestArray1Part2 ), then loop to show the next parts.
I am currently using a foreach statement...
No activity results to display
Show More
Leave a comment: