Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>Hi all. I am using VFP 3.0 for Windows.
>>
>>My combo box is returning the row number of the item chosen, rather than return the numeric value in column 1. The proper column (#1) is bound.
>>
>>The combo box is filled using the RowSourceType of "fields" and then by specifying each field in the RowSource.
>>
>>I remember this happening is FP 2.6 also. Anyone know how to fix this?
>
>This is a problem with VFP3. In VFP5 you can get around it with the BoundTo property. Easiest way is to change your combo box source to an array, or SQL, and use the string value for your numeric field. Then in the lostfocus() method change the value back to a numeric type and save it or use it as you need.
>
Barbara,
Thanks once again. BTW what does "HTH" stand for?
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