Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Receiving parameters in form.load
Message
 
To
30/09/1998 12:12:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00141973
Message ID:
00142448
Views:
35
The best way is to have your parameters as properties of your applicaton object so they can be accessed at any point while you load the frame. Public variables will also work (please, no-one tell me why public variables are bad) if you have no application object.

This parameter-passing problem is not unique to your design - most of us have slammed into it more than once.

Barbara

>Thanks Barbara. Maybe I've got a fundamental design problem, but here's what I'm trying to do:
>
>A parameter is passed to my form. Some of the controls on the form (treeview) Init differently depending upon the parameter. Unfortunately they Init before the form has had a chance to receive the parameter.
>
>I've got a few workarounds, but by far the simplest would be if a form could receive parameters early on - like in the load. But since this a "no go", I'll do something different.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform