Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A object reference to the last form
Message
De
30/08/1996 10:32:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00006935
Message ID:
00006993
Vues:
35
>>>Do you know if it's exist a way to get a reference to the last active form. You know like the ACTIVEFORM property for the _screen object but for the last one.
>>>
>>>Thank's for your help.
>>>Rock
>>
>>You can get the parent/child window stack using the
>>WCHILD(). (Put it in a loop.)
>>Although, the way I interpret you question
>>it sounds like you need to save the form's name
>>to a variable when you deactivate it.
>>
>>Chris
>
>Hi Chris
>
>What i Need, it is not a name of the last window but a object reference to it, because i want call some methode of it.
>exemple :
>
>i create a property call LASTFORM
>
>_screen.LASTFORM = {reference of the last active form}
>_screen.LASTFORM.Add()

If you have the name of the wanted form in _screen.LASTFORM, you can do the following:

MyVar="_screen."+_screen.LASTFORM+".Add()"
&MyVar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform