Use the Immediate window of the Visual Basic Editor while working with Visual Basic

Use the Immediate window of the Visual Basic Editor while working with Visual Basic

Use the Immediate window of the Visual Basic Editor to check the results of a line of Visual Basic code. You can use the Immediate window to check the value of a control, field, or property; to display the result of an expression; or to assign a new value to a variable, field, column, or property. The Immediate window is a kind of scratchpad window in which statements, methods, and Sub procedures are evaluated immediately.

  1. If you want to use the Immediate window at a certain point during execution of the code, suspend execution at that point.

    How?

  2. Click Immediate Window on the Debug toolbar.

  3. Type a statement, method, Function, or Sub procedure call in the window, and then press ENTER.

Tips