Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference one form from another
Message
 
 
À
18/07/2000 00:11:18
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393630
Message ID:
00393800
Vues:
16
The function below is a generic function that you could implement as part of your form manager or as a function in a procedure file. From the form where you want to do something, make a call like:

oOtherForm = GetFormReference("OtherFormName")
or
oOtherForm = oFormManager.GetFormReference("OtherFormName")

Now you have an object reference to the other form and you can access any of its public PEMs as needed. Ex. oOtherForm.Refresh()

, snipped >

>
>O.K. Now I see how it gets the "reference number" of the form that I want to operate on, but how does it work in an expression? For instance, if I want to refresh() this form, would I just say:
>
>luretval.refresh()
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform