On Jul 24, 2008, at 8:23 AM, Vince Teachout wrote:
> Thank you, Ed, Steve and Rafael, especially for the sample code,
> Rafael. BindEvents does look like something I need to play with and
> learn, but it seems that it will only work during run-time? My
> problem
> was that I wanted to do something during design time. - WriteMethod()
> and Sys(1270) did the trick. Thank you!
The binding happens at run time, but you code it at design time.
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.
-- Ed Leafe
_______________________________________________
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.