Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddItem v AddListItem in Combo Boxes
Message
De
19/09/2000 06:12:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
AddItem v AddListItem in Combo Boxes
Divers
Thread ID:
00417981
Message ID:
00417981
Vues:
49
I usually populate combo boxes via arrays or cursors, with a description in the 1st row & the actual value in the 2nd.

I recently tried using the AddListItem to populate the control, but I only stumbled across example code in a Marcus Egger book, as there's no real example in the VP or MSDN documentation. After seeing the example, it was fairly easy.

The only thing I find strange with this approach is that all the values need to be character, numerics need to be converted. However, if the bound value is a numeric, the converted numeric is stored without any intervention. What's going on there?

What's the difference in using AddListItem compared to AddItem?

Thanks,

Andy Crawshaw
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform