Hi Vince, The point that's made in the previous post about the bindevent, is that you write the code to bind to the dblClick once in the grid(class) and the never have to worry about it again, because when the grid runs, all controls in the grid delegate their dblclick to the grids method you specified. That way you don't have to visit each and every control to place your code there, or write a 'builder' to put the code you've otherwise put there manually. There's just no need any more to code the controls.
Regards, Sietse SW-Software -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Vince Teachout Verzonden: donderdag 24 juli 2008 16:03 Aan: [EMAIL PROTECTED] Onderwerp: Re: Can I programattically set method code? Ed Leafe wrote: > On Jul 24, 2008, at 8:23 AM, Vince Teachout wrote: > > > The binding happens at run time, but you code it at design time. > > That's what I thought it sounded like. What I was looking for was something that happens completely at design time. The goal being not to do anything for the user, but to automate some of my tedious design-time coding. ie, I want the code in the dblclick() method permanently, I just don't want to have to hunt down and code each one. In any event, I've saved the messages, and will play with Bind Events later tonight, as obviously my VFP knowledge is sadly lacking.... > BTW, this is the way that most GUI toolkits work: controls emit > events, and you explicitly bind to them. VFP simply gives you a > shortcut of binding the event to the method of the same name. This is > handy, but also leads to abominations such as putting tons of logic in > the Click() method of a button. Cough. Cough. Oh, I'd never do that...... cough. [excessive quoting removed by server] _______________________________________________ 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]@sw-software.nl ** 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.

