Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging a problem
Message
From
19/06/2010 14:22:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/06/2010 17:34:52
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01469670
Message ID:
01469769
Views:
45
>I agree with you that this is what happens. But what puzzles me is why the container "check" for the alias used in the RowSource of the combo control (and of course does not find the alias) instead of first calling the INIT of the control. I have another form that has a container (also dynamically added) that uses exactly the same control and no problems there. Thank you for helping me understand the issue and hopefully get to the solution.

Properties are evaluated before .init() is run. So it tries to bind the rowsource to an alias which doesn't exist yet, hits an error and starts unloading your form.

You can't put cart ahead of the horse, so you need to set the .rowsource programmatically, in .init(), after (and if) the cursor is created.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform