Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box returns row number instead of bound numeric fi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00043270
Message ID:
00043315
Vues:
40
>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?

Evan,

In VFP 3.0 you cannot fix this any way other than NOT using a numeric field as the bound column of the combo. In VFP 5.0 you can use the BoundTo property to allow numeric values to be the bound value.

This is a bug in VFP that is a reualt of making it compatible with FP 2.x where a numeric variable underlying a dropdown or list would cause the variable to receive the row index on the selected itme rather than the value in the list display.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform