Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a paramater that a control can see in it's init.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00290802
Message ID:
00290806
Views:
21
Roi, see Jim Booth's idea on this at "Parameter in LOAD" Thread #242341 Message #242420

>I have FormA that calls FormB with a parameter. The parameter holds a value to set the .controlsource in the .init of each control on FormB.
>
>It doesn't work, of course, because the control inits fire before the form inits. Anybody have any ideas of how I could accomplish something to make it work.
>
>The only thing I could think of was to create a .AfterFormInit method in all my baseclass's and run them from the forms init. Not that big of a deal but I just wanted to know if anybody knows of another way.
>
>Thanks.
>
>I'm doing this because I have a couple buttons (add / edit) that call formB. formB is used to modify a view in formA's DE. FormA has 6 sets of buttons (on different pages of a pageframe), they call 6 different formBs, each of which modifies a different views. I want to set the view name in a property of the buttons and just pass it to formB so I only have to set control source in 1 place.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform