>>Hi,
>>
>>I want to work out what is setting a variable to a particular value. Is there a way to set a breakpoint on something like this:
>>
>>MyVar = 1
>>
>>and then have the debugger stop when MyVar = 1 changes to false (or true)?
>
>Hi Frank,
>
>Set your breakpoint. Then right-click on the red dot. Choose "Condition... " from the context menu. Type "MyVar = 1" in the box and ensure "Is True" is selected. Or, select "Has Changed" to break when it changes.
>
>Bruce
Thanks, at first attempt it hasn't helped me, but to be honest I didn't try too hard as I worked out where it was changing. I'll remember this so that I can try it again.