The Locals Window
The Locals window (Figure 1-13) automatically displays all of the declared variables in the
current procedure and their values.
Figure 1-13. The Locals window
When the Locals window is visible, it is automatically updated every time there is a
change from run to break mode, and when you navigate in the stack display, as shown in
Figure 1-14.
Figure 1-14. The Locals window shows function values.
You can use the Locals window to do the following:
??? Resize the column headers by dragging the border right or left.
??? Close the window by clicking the Close box. If the Close box is not visible, double-click
the Title bar to make the Close box visible, and then click it.
CHAPTER 1 n THE MACRO RECORDER AND CODE MODULES 11
Locals Window Elements
The Locals window is made up of the following components. These window elements allow
you to open the call stack and see the actual values of your variable as they are processed.
Call Stack button: Opens the Call Stack dialog box, which lists the procedures in the call
stack. The call stack lists all the functions that are currently being executed. Figure 1-15
shows that the GetRegionalTotals function is being run from within the GetTotals function.
The function on top is called by the function below it.
Figure 1-15. The call stack
The Locals window shows the following items in its columns:
Expression: Lists the name of the variables. The first variable in the list is a special module
variable that can be expanded to display all module-level variables in the current module.
Pages:
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38