Solved

How to use the Add Watch function in VB?

Posted on 2004-04-29
4
183 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
ID: 10951838
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
ID: 11258600
Points Bingie
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replace Formatted Numbers with text 9 61
Updates not working for MS Windows 7 12 152
Copy a row 12 57
Looking for VB6 code to read SQL table export it to ascii 8 31
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

947 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

23 Experts available now in Live!

Get 1:1 Help Now