Solved

How to use the Add Watch function in VB?

Posted on 2004-04-29
4
184 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

774 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