Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding method at runtime
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00860534
Message ID:
00860670
Views:
14
You cannot add a method directly.
You can however, add a property and bindevent() your code to this property.

The code may pre-exist in your exe, but you can also write a class prg and compile it at run time before instanciating the class.

The possibilities look endless...

HTH :-)

>I was just curious if there is a way to programmatically at runtime add a method to a class (kind of like AddProperty, but for a method)...?
>
>Laterness,
>Jon
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform