>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao