Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
Hello Sergey,
I may have spoken to soon. It was working and then suddenly, everything went flakey on me.
I'm calling a routine in the InteractiveChange Event of the combobox. (I was doing that from the beginning). Now things are at the point where, if I put a SET STEP ON as the first line in InteractiveChange, everything works correctly, my Bound variable gets updated, the combo shows the value I selected, etc.
However, if I remove the SET STEP ON and replace it with = messagebox(m.pbenefit) (That's the variable the combo box is bound to), messagebox shows me a value of 0 all the time regardless of what value I select in the combo box.
Any ideas whats going on here or is this another bug?
Thanks for your help in this!
>It's bug in combobox bound to a numeric property with RowSourceType 2 or 6. To workaround it either unbound combo or use some other RowSourceType, like 5-Array or 3-SELECT.
>
>>I have a combobox on my form with the following properties set:
>>
>>.BoundColumn = 2
>>.BoundTo = .T.
>>.ControlSource = m.pbenefit
>>.RowSource = pplans.desc, benefit
>>.RowSourceType = 6
>>.ColumnCount = 1
>>
>>The field benefit is numeric (hence the .BoundTo = .T.) as is m.pbenefit. However, when I select an item from the list, although m.pbenefit is set to the correct value, the DisplayValue of the combobox gets wipes out making it look as though nothing was selected.
>>
>>If I set .BoundTo = .F., then I just get the item's index rather than its numerical value when I select an item from the list.
>>
>>Any ideas?
Précédent
Suivant
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