Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to capture object information
Message
 
 
À
04/02/2003 11:54:38
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00748916
Message ID:
00748923
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform