Hi all,

As you know, now macros are contained at ODB document level and no more at subdocument level (forms and reports) Good to hear. This finally corrects a severe inconsistency affecting former versions. However, if you launch a macro from the IDE, ThisComponent points correctly to the ODB document, but if you launch the same macro from a button placed into a form-document, ThisComponent points to the form-document itself.

This is not a small problem: users will soon start looking for a solution. Most probably many of them will not recognize the exact terms of the problem, they will just learn that using ThisComponent.Parent sometimes does the job. And when this bug will be corrected, all their code will simply stop working.

But IMHO the real problem is elsewhere:
Normal users (not developers) are struggling with macro in ODB documents from the beginning. They fill their OOoBase documents with tons of complicated source code, that mostly they not even understand, and all this pain just because they would like to launch a form from another.

Put a simple way to do this job (for example a dedicated property in form buttons) and 99.99% of OOoBase users will no more need of any macros


ciao
Paolo M


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to