Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition in a variable
Message
 
 
To
22/02/2002 19:24:37
Manfred Pyrlik
Procustom Software
Wohltorf, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00624021
Message ID:
00624029
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>how can I use a class definition stored in a variable or in a memo field to get that class into memory during runtime? I know how that works in a .prg file and it's proably simple, but I can't get it worked out right now.
>
>Manfred

Something like (not tested)
lcMyClass = < Class definition >
lcFileName = Sys(2015) + ".prg"
Strtofile(lcMyClass, lcFileName )
Compile (lcFileName)
SET PROCEDURE TO (lcFileName) ADDITIVE
oObj = Createobject("myclass")
Requires VFP6 SP3 at least.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform