VBA Tip: Monitoring Variable Changes

The Watch toggle button in the Debug toolbox opens or closes the Watch window. Individual variables and expressions can be watched for different conditions.

Monitoring Variable Changes1

 

To add a variable or expression to the watch list highlight the value in the code window. Right click on the mouse and select Add Watch from the pop-up menu.

The Add Watch dialog is displayed allowing for configuring the watch settings.

2

 

The expression is added to the watch window and is updated in real time as your program executes in debug mode.

3
 
Rod Wing

Rod Wing

Rod is the Senior Systems Analyst at EnvisionCAD and has extensive experience in GIS, cartography, plotting, scanning, raster editing/manipulation, publishing, and file/data translations. He instructs MicroStation classes ranging from fundamentals to advanced.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *