>>>>
>>>>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...
Then you cannot read the vcx/prg.
VFP have not a
=LOADCLASS('classname','classfile')
well, it needs to force the loading:
TRY
=NEWOBJECT("classname")
CATCH
FINALLY
? getpem("classname","cFldNames"
? getpem("classname","cCaption"
CLEAR CLASS "classname"
ENDTRY
Of course, the code in Init have to not change the application's state.