https://bugs.freedesktop.org/show_bug.cgi?id=87974
--- Comment #16 from [email protected] --- Hi Bill, (In reply to Bill Gradwohl from comment #14) > > Main has that meaning in LibreOffice Calc, for example. In a Calc sheet, > Main is executed without having to specify it in any event list. Main works > in Calc as expected 100% of the time. I wrote a Point Of Sale system in > Calc's Basic that is 6000 lines of macro code. Main never fails to execute > when expected in Calc. I have tested with together with the code of comment8. Opened a Calc-document, insereted the macro-code, created a button on a sheet and saved the Calc-document. Then closed, reopened: The same behavior here with Calc as with Base. Main isn't executed, the msgbox doesent show the date or "Eldons". > > I don't want Main to execute when the document opens. I want main to execute > when the Form is started, and it should be re-executed every time the form > is started from within the same document. So you could boun it to the form. Open "Inventory" for editing. Start Tools → Customize → Events → Open Document ... and be shure to save 'Sub Main' in "AirportInventoryOriginal.odb : Inventory" > > After specifying Main in the event list of Base as you suggested, things do > work as expected sometimes. If any modification is made to the Basic code > while the document is up, Main is NOT executed when you restart a form > execution. That would work in the way I described above ... Regards Robert -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
