Notify and variable value change

wfunction

Well-known member
Joined
Oct 31, 2006
Messages
46
Programming Experience
1-3
How do you get notified when a variable's value is changed?
I can't use setter methods or properties, because I am passing a variable by reference (and have no access to the source code of that method).
 
Then its like asking "how do i use my car's cruise control when I'm sat at my desk at work?"
 
What is the variable, Could you not wrap it into a class and provide an event to notify you of changes? What are you trying to achieve here?
 
It is a single pass-by-reference variable being passed to a function.
And, in case you're interested, it's in an API.
 
cjard...
Why shouldn't you be able to get notified? You can do (almost) anything with computers - not necessarily with VB, but possibly.
 
However, how do you do this without polling?
 
Well, I've assumed you mean to do it in debugging.. I have no idea how/if there is anything that will do it outside of debugging.. You'll have to furnish us with more info as to the context in which you are expecting this to be implemented..
 
Back
Top