Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvent to Form.Unload
Message
 
To
26/08/2008 06:37:26
General information
Forum:
Visual FoxPro
Category:
Contracts, agreements and general business
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01341442
Message ID:
01342004
Views:
21
Hi John,

if WM_DESTROY is working for you, that's fine. However, unless your component needs to work in a variety of different frameworks I would tend to add this features to the form class itself. Right now you have code that is triggered when a window message is sent which is completely outside the form or any of the classes used in the form. This makes it hard to discover this code for anyone who doesn't know about this feature. You also might have a couple of situations where the window function is executed unexpectedly, for instance after an application error.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform