Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox Question
Message
De
16/03/2015 13:44:10
 
 
À
15/03/2015 11:14:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01616819
Message ID:
01616866
Vues:
112
>I have a listbox that has ROWSOURCE set to 50,100,200 and ROWSOURCETYPE set to VALUE.
>
>When I click on the listbox it returns values of 1, 2 or 3 (instead of the desired 50,100 or 200).
>It has to be a simple setting somewhere, but I can't seem to find it.

This is a bit more work, but in the Init() event add:
this.AddListItem("50", 50)
this.AddListItem("100", 100)
this.AddListItem("200", 200)
The items in a list box are characters. In the above you get the answer in numeric that you want via the property ListItemId.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform