Viewing Information in the Immediate Window

   

To view and change values, you use the Immediate window. You can evaluate any expression, variable, or object in the window and see the value that is returned, or you can see the effects of commands you enter (which must be in the language of the code that is currently executing).

Once you're in break mode, you can move the focus to the Immediate window to examine data. You can evaluate any valid expression in the Immediate window, including expressions involving properties or variables. The currently active form or class determines the scope.

To display the Immediate window

You can enter expressions into the Immediate window to display or change the value of variables, properties, and expressions.

To add an expression or variable to the Immediate window

To evaluate an expression or variable in the Immediate window

  1. In the Immediate window, move the insertion point to the variable or expression you wish to evaluate.

    Note   To examine variables or expressions that contain scripting code, insert a question mark, "?", before the variable or expression to display its value.

  2. Press Enter.

    If, you select a variable for evaluation, the Immediate window will return its current value; for expressions, the evaluated results are returned.

To execute a statement again

  1. Move the insertion point back to the statement you want to execute again.

  2. If you wish, you can edit the current statement to alter its effects.

  3. Press ENTER.

To move around in the Immediate window

See Executing Commands and Evaluating Expressions in the Immediate Window for additional information on the Immediate debug window.