Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a 'childform' from a menu
Message
From
02/07/2002 04:54:38
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, United States
 
 
To
01/07/2002 12:37:59
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00673806
Message ID:
00674343
Views:
20
Gary - Thanks for the quick reply.

By two forms I mean the parent and the child forms. The parent form contains the selection controls that determine the data that is passed to the child that has the TXText Control. I'm presently working on getting data for a report to the TXText control on the child form. The record I'm referring to is a record the user selects in the parent form. This record contains details that are to be used for the report in the TXText control on the child form.

I am wondering why you wouldn't use openchild() placed in a user-defined action on the parent form called from the menu?? Then the two forms would be sharing the same development environment which would reduce the amount of information that would need to be passed to the child form (which really wouldn't be a child form if I used Openform() or Openformmulti().) Thanks for you help!



>Michael:
>
>>What's the best way to call a form from a menu bar within Codemine when parameters need to be passed
>
>The preferred way to call a form from a menu is using m.goStateManager.Openform() (or Openformmulti). These methods allow you to pass upto seven parameters to the form's init.
>
>>and both forms must use the same record?
>
>Your opening question suggests you want to call a form from a menu. What do you mean by "both forms". Also, where does the "same record" come into it? You can call a parent form using Openform (as suggested). If by "same record" you mean the current record, if you open a child form (of which there are a few <s>), the child form usually inherits the parent form's DE. So, you will automatiaclly have access to the record loaded in the parent when calling a child form.
>
>Lets break down your problem a little more and see whether we can arrive at the best solution for you.
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform