Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.ActiveControl is invalid in QueryUnload event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00030059
Message ID:
00030080
Vues:
39
>>>>Does anyone know why the property thisform.ActiveControl (which should evaluate to the current control on the form) is invalid inside the QueryUnload event?
>>>
> Hey Peter if you are in QueryUnload (form event) may be it logical to don't have a activeControl because you live the form so the activecontrol was the form.
>
>May be what you need was the last object who got the focus so i don't really know if it a easy way for find it but you can make your own reference of it with the event gotfocus
>
>>>
>>>>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)
>
>What's about unload form event
>
>>
>>Peter


Hmmmm.... I'll have to think about it some... Thanks
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++.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform