You could also use VBScript as a component ('Microsoft Script Control 1.0' or higher), included into your application. You can then fully dynamically create code (such as subroutines etc.) and have them run without any compilation or whatever !!!<br>
<br>
OK, OK, it's a heavy solution for what you want to do, but you can keep it's use simpler than creating subs and so, and you gain almost infinte power !<br>
<br>
Check out for the MSSCRIPT.OCX in your systems folder and see the Microsoft website !