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
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Passing a paramater that a control can see in it's init.
Miscellaneous
Thread ID:
00290802
Message ID:
00290802
Views:
66
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.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Next
Reply
Map
View

Click here to load this message in the networking platform