Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

VB6 or VB2005 Monitoring a variable

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
Murray Brown
Asked:
Murray Brown
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi

Thanks very much
Why does the thing you mentioned for vb6 not
exist for vb8
0
 
Éric MoreauSenior .Net ConsultantCommented:
>>Why does the thing you mentioned for vb6 not

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

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now