Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Values Change
Message
From
24/02/2004 10:47:47
 
 
To
24/02/2004 09:53:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00879852
Message ID:
00880295
Views:
19
>>>>>>>It seems relatively easy to manage all this in select statements building the array. I can get the values I want in the array. My problem is getting the array to show in the dropdown.
>>>>>>
>>>>>>After you build the array, I assume you do combo1.requery() and combo2.requery(), don't you?
>>>>>
>>>>>No, I was not. Thanks
>>>>
>>>>You mean, it works now?
>>>Yes, The dropdown is filled with the values I want.
>>>
>>>Thanks
>>
>>I'm still having a problem though. I get the values selected it the two comboboxes, and all is well. Lets say I select the first item in the array for combo1 and the second in the array for combo2. Then if I click one of the radio buttons that recreates the array, I now have the first item in the new array in Combo1 and the second item in the array on combo2. It's as if the combo box is linked to the position in the array rather than the value I selected. I would expect to see the original values remain unless I click the combo again to select a new value.
>>
>>Any suggestions to what I could be missing?
>
>If the values of the combos' controlsources are numeric, you need to set .boundto=.t.; that way the combo knows the value is the value of the controlsource, and not the ordinal number of the item.
>
>If that doesn't help, you can always do ascan() on the new array, find the value, and set the combo's value to that immediately after the requery() - once for each combo, of course.


Thanks for the help, I have it now.
Previous
Reply
Map
View

Click here to load this message in the networking platform