Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox weirdness
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00408372
Message ID:
00408514
Vues:
46
>From documents:

Hey, two can play at that game. < g >

From HackFox:

For combo and list boxes, things get interesting. Value can be either character or numeric. If it's character, it contains the actual text of the chosen item—as a character string. Even if the RowSource data is something other than character, when it's placed in a list or combo, it's converted to character there. If Value is numeric, it's the Index in the list or combo of the chosen item. In VFP 5 and VFP 6, you can put a numeric data item in Value (as a character string, of course) by setting the list or combo's BoundTo property to .T. In VFP 3, there's no way to use numeric data for the Value of a list or combo. This lets you show a description in the list while saving a numeric ID for the Value.


Since it sounds like what you were seeing was the situation where you were getting back the index in the list, I was assuming that your Value was numeric. I know I've had this happen to me in the past, and using the DisplayValue instead solved the problem.

The control source shouldn't be getting changed just because you said MODI FORM.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform