Book a Demo
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:


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

Image showing how to inspect the 4th and 5th elements of an Array

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



Execute > Windows > Watches


Execution Analyzer window toolbar : Analyzer Windows icon| Watches

Learn more