Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looping trough the properties of an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Looping trough the properties of an object
Divers
Thread ID:
00883206
Message ID:
00883206
Vues:
36
Hello everybody, Is there an easy way to loop trough the properties of an object? let's say that oMyObject has three properties, cProperty1,
cProperty2 and cProperty3
I would like todo something like

FOR EACH oMyVar IN oMyObject
?oMyVar.Value
ENDFOR
but "FOR EACH" only works on collections or arrays

I'm using VFP 8.0

Any suggestions?

THIS.Thanks("In Advance")
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform