• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Debugging: Your Key to Succe... > Working with the Locals Pane

Working with the Locals Pane

The Locals pane of the Debug window enables you to see all the variables on the current stack frame and to view and modify their values. To access the Locals pane, open the Debug window and verify that the Locals tab is selected. Three columns appear: Expression, Value, and Type. The Expression column shows you the variables, user-defined types, arrays, and other objects visible in the current procedure. The Value column displays the current value of the variable or expression. The Type column tells you what type of data the variable contains. Variables that contain hierarchical information—arrays, for example—are displayed with an Expand/Collapse button.

The information contained in the Locals pane is dynamic. It is updated automatically as the code executes and as you move from routine to routine. Figure 16.10 illustrates how you can use the Locals pane to view the elements of a collection object. As you can see in the figure, you easily can view the value of each item in the collection. To try this example yourself, step through the NewCollection procedure found in basExamples of Chap16Ex.mdb. Expand the colSports hierarchy and view the value of each item in the collection.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint