Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looping trough the properties of an object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Looping trough the properties of an object
Miscellaneous
Thread ID:
00883206
Message ID:
00883206
Views:
35
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
Next
Reply
Map
View

Click here to load this message in the networking platform