Solved

How to use the Add Watch function in VB?

Posted on 2004-04-29
4
187 Views
Last Modified: 2012-06-21
Any expert can tell me and give me some sample please?
0
Comment
Question by:khcheng88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 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…
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…

726 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