Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A object reference to the last form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00006935
Message ID:
00006995
Vues:
31
>>>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()

Ok, Ill try this again,

Make a global variable called goLastForm
When you are exiting your current form set its value
to ThisForm (goLastForm = ThisForm)

Now you can say, from within another forms method,
goLastForm.AnyMethod()


Chris
Chris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform