Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best method?
Message
 
À
04/07/2001 14:56:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00526745
Message ID:
00526747
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I was wondering which method is better. If I call a 2nd form from my main form. Should I pass a list of parameters: DO FORM myform.scx WITH parm1, parm2 etc? Or should I open the 2nd form as a property of the 1st form: DO FORM myform.scx NAME mainfrm.newfrm? Thus having access to the properties of the main form from that form? Instead of passing them. Or the old public variable method?
>
>TIA
>Mike

I usually use

DO FORM myform.scx WITH thisform

Then the second form gets the object reference to the calling form in INIT() and stores it to it's own property .oCallingForm.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform