Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Object Info . . .
Message
From
06/10/1999 12:16:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/10/1999 12:11:23
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00273215
Message ID:
00273232
Views:
21
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform