Folks, I have a VFP 9 issue re: BindEvent...
I've set up event bindings with grid headers calling a method in the grid. The idea is that if the header is clicked, the grid is resorted. Everything works except the grid doesn't display the records. In short, I believe the Binding code is eating the Refresh event for the grid. If I suspend the app and call the refresh of the grid, all is well, the grid refreshes and the records display. But I'm not in the BindEvent code. Putting the same code the method called via BindEvent does nothing, the records are there but the grid doesn't display them. Here's the BindEvent call that sets things up: BINDEVENT(loControl, [Click], THIS, [HeaderClickSetup], 0) Where loControl is the header (I'm in a FOR EACH loControl loop where loControl is a header). (Grid).HeaderClickSetup calls HeaderClick with a few parameters. Adding a (Grid).Refresh to either HeaderClickSetup or HeaderClick doesn't display the records in the grid. >From the help file: "Certain control events such as *GotFocus*, *LostFocus*, *InteractiveChange*, and *ProgrammaticChange* do not work if the second bit of the nFlagsparameter is set, for example, nFlags set to 2. These events are treated as method calls internally by Visual FoxPro, even though they are considered events. The same behavior applies to the *Refresh* method of an object on a form that is called when the form's *Refresh* method is called." That's kind of a vague statement, but I can say the second bit of the nFlags parameter is 0 (unset). Any idea how to get the Refresh method of an object to actually Refresh while running BindEvent code? Bill --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

