https://bugs.freedesktop.org/show_bug.cgi?id=87974

--- Comment #14 from Bill Gradwohl <bill-l...@ycc.com> ---
Robert: I've been a Professional Software developer for over 30 years. I've
written code in 22 languages. "Main" has a special meaning in many computer
languages. It is the "Main" entry point to start the execution. Main is NOT
special in Basic. However, using "Main" in LibreOffice's pseudo language does
give the impression that LibreOffice supports the concept of "Main" as it's
commonly understood. 

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 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.

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. The
Globals are NOT initialized as would be expected. You must close the document,
effectively closing Base, and then starting from scratch to reacquire the
facility of the Main entry point. That is time consuming and frustrating in a
testing environment, and is unlike Calc where that does not happen.

BTW - My first language was German. I was born in Graz, Austria, but spent most
of my life in the US, so appreciate your efforts in using English. My German
isn't anywhere near as good as your English.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to