Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: ho me
  Where is ho me?
 
 Philippines
 ho me
 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: 189073 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Wednesday, August 13, 2008 9:56:07 AM         
   


> >
> > 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
>
>
> Thanks, but...
> 
> In my case, there are various forms/formsets that are used throughout the application, and are instantiated from VCX files. And they too have numerous global variables which spit error during instantiation...
> 
> How do I issue NOINIT clause for a form/formset...
> 
> Please help...
> 
> Regards
> Venkatakrishnan K


Hi,

One way is to put codes of Andy in prg and that prg must return the reference of the object that was instantiated.

then run that prg inside those forms you mentioned.

ex. loNoInit = LoadClassWithoutInit(), something like that.


hth

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