View array data

Fortran Array

Fortran users might find that it is impossible to view the upper bounds of an array. This is due to a lack of information from the compiler. In these circumstances, the array is displayed with a size of 0, or simply <unknown_bounds>. It is still possible to view the contents of the array using the Evaluate window to view array(1), array(2), and so on, as separate entries.

To input the size of the array, right-click on the array and select Edit Type. In the Edit Type window, enter the real type of the array in New Type.

Edit Type window

Alternatively, the Multi-Dimensional Array Viewer can be used to view the entire array.

Flexible Array

C and many C++ language extensions support the use of flexible array members in structs. You may find that these arrays are not displayed fully within the variable view. This is due to a lack of information from the compiler.

To view the array you can use the View As Vector feature. Right-click the array and select View ‣ Vector (C/C++ only). Then enter the size of the flexible array.

View As Vector window

Alternatively, the Multi-Dimensional Array Viewer can also be used.