Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find if a value is already in the list
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to find if a value is already in the list
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01234037
Message ID:
01234037
Vues:
65
Hi everybody,

I'm working with my late colleague's form and it uses AddItem method to add items to the listbox. My question is: what would be the simplest way to check, if the item is already in the list?

Here is the line of code:
this.List1.AddItem(laResults[1, 1] + ' ' + laResults[1, 2])

I actually want to be able to check for the code (first portion) in the list.

Should I loop through all list content or there is a better way?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform