Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using BindEvent to close a form when parent closes
Message
From
12/07/2009 17:47:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01411652
Message ID:
01411757
Views:
42
Christof --

OK, thanks.

My original question in this thread showed the Init for FormB saving the object reference to FormA .... as it makes modifications to objects on that form.



>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.
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform