Ok so does any body have any ideas or hints on how to select a range of values from an array???

say: Array1[1,0] to Array1[10,0]

so that would be the first values in each row from 1 to 10.

ANy ideas?

Here you have an example code of multipidimensional array, and how to get values out of it:

int[,] array = new int[3, 4] { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 } };
            int[] newNumbers = null;
            for (int i = 0; i < array.GetLength(1); i++)
            {
                for (int j = 0; j < array.GetLength(0); j++)
                {
                    Array.Resize(ref newNumbers, (j + 1));
                    newNumbers[j] = array[j, i];
                }
                break;
            }

The "newNumbers" will be: 1,5 and 9.
I think this is what you have been looking for.

The "newNumbers" will be: 1,5 and 9.
I think this is what you have been looking for.

thank you!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.