Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem between form(s)
Message
De
21/12/1999 10:39:19
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
21/12/1999 10:30:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00306676
Message ID:
00306684
Vues:
26
Wai-

I suggest you do something like this:

1. Assign FormB to a custom property in FormA.
2. Make a custom method in FormB that will have the code for doing whatever needs doing. Say it's called DoAction().
3. FormA's button.click could call thisform.oForm.DoAction( passSomeParamter )

Even better, have a custom method in FormA called DoAction(), too. (Sounds like a subclassed form with two additional subclasses, if necessary, for formA and formB.) Then, the command button in formA would call FormA.DoAction(). This will will help centralize form level code so that it's easier to maintain.

>If i hv 2 form, say Form A and Form B.
>if i want to click a button in Form A then it will perform Form B button click event, how can i do that~!
>pls reply~
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform