Solved

VB6 or VB2005 Monitoring a variable

Posted on 2007-11-23
3
220 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 69

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 69

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

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

20 Experts available now in Live!

Get 1:1 Help Now