Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I change the controlsource in the Init() of a object?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Can I change the controlsource in the Init() of a object?
Miscellaneous
Thread ID:
00321642
Message ID:
00321642
Views:
45
I have this object with many textbox. All textbox are bound to a field. Ex:ControlSource=”MyAlias.MyField1” but in some case I need to change the alias to “IsAlias”.

If I change the alias in the init() of the object I get a error because the alias “MyAlias” do not exist.
Where is the best place to control the alias of controlsource?

Passable solution:
Having a subclass of the object with all control source change to the alias “IsAlias”.
Coding the controlsource from the init() of the object for the right alias with a parameter.
Using a cursor object in the form and control it from the loadevent() of the form.

Any one can help me with this one!
Next
Reply
Map
View

Click here to load this message in the networking platform