Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.ActiveControl is invalid in QueryUnload event
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00030059
Message ID:
00030069
Views:
47
>>Does anyone know why the property thisform.ActiveControl (which should evaluate to the current control on the form) is invalid inside the QueryUnload event?
>


>I'm Not sure but may be the object doesn't exist at this time ...
No, the objects are all there (because if I nodefault inside queryunload the objects remain intact)

>
>>I need to be able to determine the current control in order to validate that control. ( and posibly all parents). Note: the LostFocus (of any object) event is not called when the form is closed.
>
>Look For destroy event !!!
By the time the destory event comes arount I have no change to validate the control (which is the purpose for look at thisform.ActiveControl)

Peter
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform