Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two Unrelated forms 'talking' to each other -- How?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00301175
Message ID:
00301284
Vues:
29
>1) If you want to call method of the other form, I think, you can just use
>MyFormName.method()
Tried that; got Object MyFormName is not found. -- My guess is that this is because MyFormname is not an object belonging to the first formm...
I guess what I *want* is '_screen.MyFormName. ...'

>2) Issue NAME clause in do form
The 'unrelated' forms can get called from yet other forms, menus, events etc; so the name would need to be a public var... This is a thought.

>3) In the main program create private variables oForm1, etc. In your form's Init method set oForm1=thisform. So, after this you can call oForm1.method().
I think this would get me stuck as #1.

>In my apps I used third approach, but as I understand from recent discussion, the second method is more sufficient. Try ask Edward Pikman for more professional advise.

Thanks.

Cheers
-josh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform