Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on order on instantiation
Message
 
 
To
14/02/2008 17:25:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01292806
Message ID:
01292820
Views:
41
>>>>Makes sense (except in the case where I need the order to be reversed <g>). Thank you for your help.
>>>
>>>Well, what is your specific problem or requirement? Perhaps there is a workaround.
>>
>>I am sure there is a work around. Otherwise, I am in trouble <g>.
>>
>>Here is the brief explanation.
>>
>>I have a combo box in a container. The RecordSource for this combo box is an array. To populate this array, in the INIT method of the combobox calls a method of the container. But it bombs there because the method of the container relies on a property set in the INIT method of the container (which has not fired yet). So I have to reconsider the entire sequence of how to populate this array.
>
>In a specific instance, you could of course populate the ComboBox from the Container.Init(). If you want a more generic solution (for any ComboBox placed in this kind of Container)... well, I don't know. Perhaps the Container could check whether it contains this specific type of ComboBox.

As soon as I sent you my previous message I thought about the same. Why not to do all this business in the container INIT method. And then from the INIT method to .Requery() the combo.

Thank you very much for the suggestion. It should work.
"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