PDA

View Full Version : How do I display an array slice? That is, how do I display part of an array?



Josh-TotalView-Tech
07-31-2006, 11:48 AM
When displaying large arrays, you may only want to see a part of it. For example, you've got a 100 element array and you're only interested in the first 10.

http://www.etnus.com/Support/Tips/images/70Variable_master_array.png

[/url]As this example shows, you just enter what you need to see. You can even modify what's being shown so that TotalView displays every second or third (or whatever) value.


http://www.etnus.com/Support/Tips/images/70Variable_master_array_sliced.png

[/url]And, you can also add a filter to a slice so that TotalView only shows values meeting the criteria you specify.


http://www.etnus.com/Support/Tips/images/70Variable_master_array_sliced_filtered.png

[/url]For more information, see Displaying Array Slices (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=User_Guide/DisplayingArraySlices.html).