Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any Way To Determine Object's Properties?
Message
From
28/09/2011 14:39:17
 
 
To
28/09/2011 14:30:32
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01525091
Message ID:
01525092
Views:
92
This message has been marked as a message which has helped to the initial question of the thread.
Check out Amembers()

>For example, if I have an object, myObj (based on empty class), that contains the following three properties:
>
>1) myObj.startdate = {^2000/01/01}
>2) myObj.name = "Joe Blo"
>3) myObj.age = 46
>
>is there any built in VFP function/command that can return me the name of each property and its corresponding value? I was hoping that I could pass in any generic object and have it's properties' names and values spit out.
>
>TIA,
>Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform