Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading class properties without instantiating a class
Message
 
 
To
29/09/2006 16:57:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01158181
Message ID:
01158291
Views:
34
>>>
>>>WITH NEWOBJECT("CLASS","CLASSFILE_VCX_PRG",0)
>>>   for p=1 to AMEMBERS(apnames,this)
>>>     pvalue=getpem(.class,ap[p])
>>>     * writeexpression/addproperty
>>>   next
>>>   * other
>>>ENDWITH
>>>
>>
>>Also what can we do if we don't want to supply the second parameter? All our class libraries and programs are in memory and we never specify classlibrary when instantiating a class.
>
>Naomi,
>What do you want to do on the class?
>I have not understood if you want to read it to modify or other.

The class has some properties cFldNames, cCaption set in design-time. I'd like to get values of these properties. I do not know where the class definition is stored and I'd like to get these properties without instantiating a class, because the Init of the class has some references to thisform and I may not have a form...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform