This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to display 2-dimensional array in watch window



I want to see data in a two dimensinal array int x[10][10]; 

For a single dimension array i can see the list once i set it in the watch window. But how do i look at the data in two dimensional arrays. Is there a way ???

Thanks, 

AQ

  • Solved, you just have to double click on it. 

    But other question then arises, how do i swap the dimensions to see dimension 2 items listed first followed by dimension 1 items under it. 

    Thanks, 

    AQ

  • 1898541 said:
    But other question then arises, how do i swap the dimensions to see dimension 2 items listed first followed by dimension 1 items under it

    I don't believe this is possible in the way it is displayed in the watch window. It always shows all elements of x[0] first, followed by all elements of x[1], and so on.

  • Thanks AartiG for a reply, 

    Yupp sure you are right. I could not figure any way out. So i had to go and switch my dimensions of the array to get a better view at them :) ... painful but required ...