Solved

VB6 or VB2005 Monitoring a variable

Posted on 2007-11-23
3
221 Views
Last Modified: 2013-12-25
Hi

Is there a technique to break code at every point that a certain variable or textbox value
changes.
I know how to add a watch to a certain variable. Can you extend this to break at every point
that the variables value changes.

Thanks
0
Comment
Question by:murbro
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 20338660
In VB.Net (2002-2003-2005) when I need to monitor a variable like that, I create a property and place a breakpoint in the Get method.

In VB6, that feature exists. You need to add your variable to the Watches window, edit the watch and select "break when value changes"
0
 

Author Comment

by:murbro
ID: 20344997
Hi

Thanks very much
Why does the thing you mentioned for vb6 not
exist for vb8
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 20345781
>>Why does the thing you mentioned for vb6 not

I don't know. Probably related to the new compiler/debugger.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

813 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

19 Experts available now in Live!

Get 1:1 Help Now