Solved

How to use the Add Watch function in VB?

Posted on 2004-04-29
4
180 Views
Last Modified: 2012-06-21
Any expert can tell me and give me some sample please?
0
Comment
Question by:khcheng88
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
bingie earned 50 total points
Comment Utility
To set a watch, select Debug -> Add Watch.

You then fill in the expression box with the expression you want to watch for, and you can specify the action to be taken under watch type. If you choose the watch expression option, no action is taken until you enter the debug mode. You can also break at value change or when value is true.

When you run the program, the watch window will appear when you enter break mode, if you are running it in "When value is true" or "When value change" mode.

You can remove a watch by right clicking it in the watch window.

Keep in mind that watches are slow, since all watches are recalculated before the statements are excuted.
0
 
LVL 11

Expert Comment

by:bingie
Comment Utility
Points Bingie
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now