Table of contents
TOC
折叠目录
展开目录

局部窗口Locals Window

office 365 dev account|上次更新日期: 2017/9/25
|
1 参与者

局部变量窗口

自动显示当前过程中所有声明的变量以及它们的值。Automatically displays all of the declared variables in the current procedure and their values.

局部变量窗口可见时,它将自动更新每次运行从更改为中断模式或导航堆栈显示。When the Locals window is visible, it is automatically updated every time there is a change from Run toBreak mode or you navigate in the stack display.

您可以:You can:

  • 通过向右或向左拖动边框来调整列标题的大小。Resize the column headers by dragging the border to the right or the 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, then click it.

窗口元素Window Elements

调用堆栈按钮Calls Stack Button

打开调用堆栈对话框可列出调用堆栈中的过程。Opens the CallStack dialog box which lists the procedures in the call stack.

表达式Expression

列出变量名称。Lists the name of the variables.

在列表中的第一个变量是特殊模块变量,可以展开以显示当前模块中的所有模块级变量。类模块中,系统变量的<Me>定义。第一个变量的标准模块,定义。第一个变量的标准模块, <name of the current module>。全局变量和在其他项目中的变量将无法访问局部变量窗口中。The first variable in the list is a special module variable and can be expanded to display all module level variables in the current module. For a class module, the system variable <Me> is defined. For standard modules, the first variable is the is defined. For standard modules, the first variable is the <name of the current module>. Global variables and variables in other projects are not accessible from the Locals window.

不能编辑此列中的数据。You cannot edit data in this column.

Value

列出变量的值。List the value of the variable.

当单击“值”列中的某个值时,光标变成 I 型。您可以编辑该值,然后按 Enter 键、向上箭头键、向下箭头键、Tab 键、Shift + Tab,或在屏幕上单击来验证变化。如果该值是非法的,则“编辑”字段仍处于活动状态并突出显示该值。同时,还会出现描述此错误的消息框。按 Esc 键取消更改。When you click on a value in the Value column, the cursor changes to an I-beam. You can edit a value and then press ENTER, the UP ARROW key, the DOWN ARROW key, TAB, SHIFT+TAB, or click on the screen to validate the change. If the value is illegal, the Edit field remains active and the value is highlighted. A message box describing the error also appears. Cancel a change by pressing ESC.

所有数值变量必须列出一个值。字符串变量可以有一个空的值列表。All numeric variables must have a value listed. String variables can have an empty Value list.

可以展开和折叠包含 subvariables 变量。折叠的变量并显示一个值但每 subvariable。展开图标,展开图标和折叠图标,折叠图标显示在左侧的变量。Variables that contain subvariables can be expanded and collapsed. Collapsed variables do not display a value but each subvariable does. The expand icon, Expand icon and the collapse icon, Collapse icon appear to the left of the variable.

类型Type

列出变量类型。不能编辑此列中的数据。Lists the variable type. You cannot edit data in this column.

© 2018 Microsoft