Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a specific type of object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00091531
Message ID:
00091539
Views:
21
>Is there a way to determine if an object of a particular class already exists in memory. I'm not looking to TYPE() an object. I want to be able to determine if an instance of class ABC is already in memory. It may be called goMyObject or goYourObject, who knows. I just want to be able to identify any objects in memory of type ABC.
>
>That make sense?
>
>Thanks.

Jim, right off the top of my head (I don't have the code for this)
It is possible to:
1. LIST OBJECTS TO FILE objects.txt
2. Analyse text file some way to get if exists
CLASS "ABC"
string in it, and a name of variable this object belongs to.

HTH,

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform