Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 6.0: How can I put a breakpoint into AfterRowColChange?

Status
Not open for further replies.

Kimed

Programmer
May 25, 2005
104
LT
Hi,

I'm trying to debug a form, and the code that needs attention is called from grid's AfterRowColChange event handler. When I put a breakpoint there, though, it doesn't let me see the action I'm trying to monitor. Once the grid gets the focus, AfterRowColChange breakpoint immediately happens, passing control to the debugger. All right, I let its code run, select the form again... and then AfterRowColChange is called once again, summoning the debugger back, although I haven't had a chance to select a different cell yet. And so ad nauseam, unless I remove the breakpoint. So I can't see what actually happens when the change I want to research does occur.

Any ideas? Thanks.
 
Are you running in Development mode with the TRACE WINDOW already open?

If you do that way, the Breakpoint will stop execution and allow you to look at the code execution in the TRACE window.

If not, then issue a ACTIVATE WINDOW TRACE prior to launching the Form.

Good Luck,
JRB-Bldr
 
I think the problem is that each time the grid gets focus, AfterRowColChange fires, so your breakpoint fires.

There are a few methods like that that are extremely hard to trace. One possibility is for you to use the Pass Count feature of your breakpoint and tell this breakpoint not to fire until the 2nd (or possibly later) time you reach it.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top