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
13/11/1999 18:46:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00290802
Message ID:
00291030
Views:
44
>>Right, I didn't see that. I always forget about them. I opted to create a AfterFormInit method. I'll probably find use for it elsewere. thanks.
>
>Well, it depends on the behavior you are after, if this is a resuable part of your framework, you might need to go the AfterFOrmInit() route, otherwise, if you wanted change the caption of a button depending on a parameter sent ot he form, just set it in the forms Init().

I wish it was that simple. I needed to bind a control based on the parameter. It actually turned out to be easier than I thought. Erik Moore had posted some code to recursively run a method in every object in a container. So it was just a matter of adding the method to my base classes. Took about 20 minutes.
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform