Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Collection Question
Divers
Thread ID:
01274665
Message ID:
01274665
Vues:
49
In the following code how do you get back the name of the key?
o = CREATEOBJECT("collection")

o.Add("Ford F150", "Truck")
o.Add("Chevy Impala", "Car")
o.Add("747", "Airplane")
o.Add("Titanic", "Boat")

** oitem is the name of the vehicle
FOR i = 1 TO o.Count
	oitem = o.Item(i)
ENDFOR

** same here
FOR EACH x IN o
ENDFOR
I want to get back "Truck", "Car", "Airplane" or "Boat"
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform