Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement