Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Object Info . . .
Message
De
06/10/1999 12:16:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00273215
Message ID:
00273232
Vues:
20
>>I'm not sure I understand. By passing the object reference to AMEMBERS() you get back the properties, events and methods of the object. To tell if one object is a property of another, like the _VFP.Application object, TYPE() or VARTYPE() will tell you.
>
>I found my solution.
>
>I have an errorlogger that iterates through the environment and captures information about memvars, and objects. The problem has been identifying that an object is even present and getting the reference.
>
>The _VFP object has an OBJECTS object with two properties(?):
> 1. Count
> 2. Objects array with references.
>
>By getting the _VFP.Count, I can iterate through the collection, gathering any or all of the properties of instantiated objects in my environment. This can be done WITHOUT resorting to the parsing gunk associated with LIST obj/mem to file.
>
>Thanks for the help.

Ohh. What you meant was this :)
for each oObject in _VFP.Objects
	? oObject.name, oObject.Baseclass
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform