Is there a way to add / delete subroutines or functions by code at runtime in libreoffice basic?
I would very like to be able to create, delete and run subroutines or functions by code at runtime. I am considering this is as a way to bypass the lack of interfaces (inability of dependency inversion) in libreoffice-basic.
Thanks to JohnSUN. So it seems you can run a macro using a string name (although its hard). Just examine the following code.
Here is example code (too long, it is up to you to clean)
And below are the functions called: