Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to capture object information
Message
 
 
To
04/02/2003 11:54:38
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00748916
Message ID:
00748923
Views:
14
>Using VFP7, is there a way to capture all the properties of an object and their values?
>
>I have been playing with the AMEMBERS() function but it doesn't seem to return the value of the properties of an object.
>
>Is there a way to do this?
>
>Thanks,
>

Jerry,
Once you have the property name, you can use Evaluate() to determine its value.
lox = createobject('session')
for lxx = 1 to amembers(lapem,lox,1)
   if upper(lapem(lxx,2)) = "PROPERTY" then
      ? evaluate("lox." + lapem[lxx,1])
   endif
endfor
release lox
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform