Prev Next

View Elements of Array

You can use the Watches window to inspect one or more specific elements of an array.

In the field to the left of the Watches window toolbar, type the variable name of the array followed by the start element and the number of elements to display. The start element is enclosed in square brackets and the count of elements is enclosed in parentheses; that is:

     variable[start_element](count_of_elements)

For example, Points[3](2) displays the fourth and fifth elements of the Points array, as illustrated.

If you entered Points[3] the Watches window would show the third array element only.

Access

Ribbon

Execute > Windows > Watches

Other

Execution Analyzer window toolbar : | Watches

Learn more