Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: venkata krishnan
  Where is venkata krishnan?
 Chennai
 India
 venkata krishnan
 Tags
Subject: RE: How do I get the properties of a class
Thread ID: 188294 Message ID: 188887 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Tuesday, August 12, 2008 12:34:13 PM         
   


> I have this unique situation wherein I need to read the VCX file directly and find out all the properties (Non-default and otherwise) and dump them in a text file, for further evaluation.
>
> And I can't instantiate the Class, because there are a whole lot of global variables being referred to in the INIT methods of the objects of class (which leads to Fatal while instantiating)
>
> So, I am on the lookout of a way to get the ENTIRE property list without instantiating...
>
> Please help...

This is not a unique situation and I already told you how to do it and gave you the code!

Use the NOINIT clause - that prevents the Init from running (so you won't get errors because the variables don't exist) but you can still instantiate the object. Then use AMEMBERS() to get the property list.

There is no other way!

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA

ENTIRE THREAD

How do I get the properties of a class Posted by venkata krishnan @ 8/8/2008 4:59:45 PM
RE: How do I get the properties of a class Posted by Anders Altberg @ 8/8/2008 5:05:43 PM
RE: How do I get the properties of a class Posted by Yousfi Benameur @ 8/8/2008 5:07:02 PM
RE: How do I get the properties of a class Posted by Andy Kramek @ 8/8/2008 9:42:22 PM
RE: How do I get the properties of a class Posted by venkata krishnan @ 8/12/2008 12:02:42 PM
RE: How do I get the properties of a class Posted by Andy Kramek @ 8/12/2008 12:34:13 PM
RE: How do I get the properties of a class Posted by venkata krishnan @ 8/13/2008 9:19:12 AM
RE: How do I get the properties of a class Posted by ho me @ 8/13/2008 9:56:07 AM
RE: How do I get the properties of a class Posted by Anders Altberg @ 8/12/2008 2:52:26 PM
RE: How do I get the properties of a class Posted by tushar @ 8/13/2008 5:32:27 AM
RE: How do I get the properties of a class Posted by Samir Ibrahim @ 8/13/2008 11:08:46 AM
RE: How do I get the properties of a class Posted by Yousfi Benameur @ 8/18/2008 2:26:56 AM