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