Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter from one form to another.
Message
 
 
To
31/07/2001 16:38:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00538001
Message ID:
00538011
Views:
9
>Does anyone know of a good way to pass a parameter from one form to another? The way I'm using is not doing the trick.
>TIA

The only way to "pass" a parameter is using the DO FORM MyFORM WITH syntax for SCX-based forms and CREATEOBJECT('MyFormClass',param1, param2, etc.) for VCX-based forms. The parameters are received in the Init of the form.

If you want to pass information between forms, you can do that any number of ways.

1. Use _Screen.Forms collection to get object reference to other form and execute its methods passing parameters. You could also set property values using the object reference.
2. Use a form manager class that gives you the ability to pass information between forms. This basically wraps the functionality mentioned in option 1 and centralizes it.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform