Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>>>>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement