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
Solved

How to use the Add Watch function in VB?

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paint/Redraw window while dragging 16 82
Determine Range to Select 5 52
clicking a shape in a frame array vb6 3 46
Powerpoint 2013: Change cell reference in excel link 3 80
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

840 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