Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best method?
Message
 
À
04/07/2001 15:16:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00526745
Message ID:
00526768
Vues:
13
>>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.
>
>Hi Nick,
>
>Let's see if I get this. In the INIT() you have a parameter 'oPassedFrm'. Then you put this into a property of the 2nd form. Then access evreything through that? THISFORM.oCallingForm.property_of_mainfrm

Yes, that's correct.
Don't forget to assign

THISFORM.oCallingForm = .null.

in form.unload(), so there will be no dangling object reference.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform