Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What was last control
Message
De
25/08/1998 19:31:34
 
 
À
25/08/1998 18:48:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00129607
Message ID:
00129908
Vues:
27
>>>I have figured out that the When() next object fires before the LostFocus() of the last object. So in the When() of a command group I need to know what object I am leaving from. What is the syntax or command to determine the active object on the form?
>>>
>>>Thanks
>>
>>Be careful, the behavior you observed isn't consistent. It only happens when clicking. When tabbing from control to control, the order is different.
>
>Thanks, I have since re-thought the problem and I think the best approch is to assign the textbox name to a property of the container object and when I click on the up or down control I know where the user pointed to... I am making a custom datetime spinner...
>
>What do you think?

This sounds like it will work, but when you assign an object to another object's property, you will have to explicitly release that reference before the releasing the referenced object.

If you don't your form will not close on release. So, in form.destroy:
thisform.container.otext = .NULL.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform