XojoScript

An interesting question posed on TOF

is there any way to inject code into a control’s events at runtime?
Or, is there a way to create a function or sub procedure and create its methods, parameters, and insert code at runtime?

The consensus is, to alter compiled code – no. Which I agree with.

The suggestion was to investigate Xojoscript – which I also agree with.

And with careful planning and configuration you CAN make controls that can actually have their “event handlers” altered at runtime.

Here’s a very rudimentary sample that might spark some imagination & use