Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging a problem
Message
 
 
To
18/06/2010 19:09:21
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01469670
Message ID:
01469709
Views:
28
I finally figured what causes the problem I am having. It is the value of the form BindControls property. If this values is .T. (thisform.BindControls = .T.) the combobox fails if the RowSource has value. But if the BindControls is .F. there is no problem. Keep in mind that it does not matter if the combobox has ControlSource entry or not. Now that I know how to deal with this problem I will have to find a way around it.

>Can you please let me know what is the RowSourceType and RowSource for your combobox?
>I just added a container and added just one combobox and I created the cursor for it in the init of the combobox, and had no problem execute it. I can send you my test screen, if it helps.
>
>>>>
>>>>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.
>>>
>>>Are you sure the container does the checking ? [Now I am guessing] If the cbo were a container, each container member woul be created before the container init fires. Similarly the cbo tries to get its members into synch, which also touches the needed cursor. If everything is ok, the init*event* fires.
>>>
>>>Got most of my findings debugging some frameworks built by java programmers working in vfp, but Drew Speedie fine-tuned my fidnings, for instance the differences between scx and vcx and things aggregated at the parent level. If you can find some of his papers on event orderr, recommended.
>>
>>It makes sense what you are saying (as far as cbo itself checking its members). But for some reason it does not do it on another form. I will try to recreate the issue in a small test form and see if it helps me find what actually "checks" for the cursor alias before the INIT method fires. Thank you for your suggestion.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform