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:
01469708
Views:
39
The RowSourceType is 2 - Alias. The RowSource is the following "CURSORNAME.COL1, COL2". To answer your question in the other message, yes, I suppose I am going to try assigning the RowSource in the INIT method of the control. But the idea is to minimize the code maintenance. But if I have to I will have to. The strange thing, as I mentioned to Thomas, that I have this controls in another form in a very similar environment and it works well. I will create right now a sample small form and test it there. Thank you for your help, Yelena.


>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
Reply
Map
View

Click here to load this message in the networking platform