Visual Basic Concepts
Testing Data and Procedures with the Immediate Window
Sometimes when you are debugging or experimenting with an application, you may want to execute individual procedures, evaluate expressions, or assign new values to variables or properties. You can use the Immediate window to accomplish these tasks. You evaluate expressions by printing their values in the Immediate window.
The following topics explain the many uses of the Immediate window:
Printing Information in the Immediate Window Using the Immediate window to monitor your application.
Assigning Values to Variables and Properties Interactively changing values at run time.
Testing Procedures with the Immediate Window Using the Immediate window to interactively execute procedures.
Checking Error Numbers Determining the meaning of run time error numbers.
Tips for Using the Immediate Window Some helpful suggestions.