Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using BindEvent to close a form when parent closes
Message
 
To
12/07/2009 14:52:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01411652
Message ID:
01411739
Views:
43
Hi Jim,

> It appears that all the Destroy events do not occur if there is a dangling reference.

True. If there's a dangling reference in Form A, the second approach wouldn't work. My assumption, though, was that the only dangling reference was the reference to Form A in Form B. By just using a window handle as the call back mechanism the need to keep the reference vanishes. If you however still need a reference to Form A for some other purposes than closing Form B, this approach wouldn't work.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform