Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading class properties without instantiating a class
Message
 
 
To
29/09/2006 17:29:12
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:
01158418
Views:
28
>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.

Thanks a lot, this may work nicely.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform