Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a 'childform' from a menu
Message
De
05/07/2002 09:59:13
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, États-Unis
 
 
À
02/07/2002 05:56:35
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00673806
Message ID:
00675602
Vues:
17
It would be nice to know how I can call a parent form from a menu and have it automatically launch a childform, just for future reference, but that's not the question I had. You've pretty much answered my question, i.e. I can't call a child form from a menu and, if I want to use the openchild option it needs to be done from an action on the parent form that the menu calls.

Thanks for your help Gary!

>>I am wondering why you wouldn't use openchild() placed in a user-defined action on the parent form called from the menu??
>
>You could. I think I understand what you are asking but to be honest, I don't quite see the problem <s>. OpenForm is used from the menu to open the parent form. OpenChild is a method of the parent form that allows you to call certain types of child form. OK so far <s>.
>
>As for putting the openchild call in a user defined action, well that's OK too. You could put the call to openchild in any form method and call it from a command button. Obviously, creating an action for the openchild requirement will allow numerous benefits when utilised by the statemanager.
>
>So, you call your parent form from a menu option and if you are not on the correct record, you navigate to it. You then want to create a report using the TX control so you call your child form that contains the TX control and there you have it.
>
>Your original question was "calling a childform from a menu". The answer is therefore that using openchild is not really going to be an option from a menu item because it is a method of the parent form. So, you will have to call the parent form first.
>
>Is the question therefore, "how can I call a parent form from a menu and have it automatically launch a childform?" ?
>
>Let me know if we are on track.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform