Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Code to a method at runtime
Message
From
06/08/2004 15:49:41
 
 
To
06/08/2004 15:44:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00931413
Message ID:
00931414
Views:
17
>How can do this? TIA

You can use EXECSCRIPT() function to execute several lines of code that you've put together in a string. Or, you can create a .prg file on the fly and run it (pretty much the same as EXECSCRIPT()).

Or, can even define a class definition in a .PRG file at runtime (DEFINE CLASS....), and use NEWOBJECT() to get an object from that definition.

Lot's of flexibility....

Is that the sort of thing your looking for?
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform