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

--- Comment #13 from rob...@familiegrosskopf.de ---
Created attachment 111713
  --> https://bugs.freedesktop.org/attachment.cgi?id=111713&action=edit
Main Sub starts when opening the document -works as it should work

(In reply to Bill Gradwohl from comment #12)
> Robert: Thanks for the hint, but I had figured that out. Main must only run
> once per document. That's the whole point of having a Main entry point so
> that you can initialize things properly so the rest of the subs and
> functions can take advantage of it.

Could be I don't understand right - English is a little bit complicated for me. 
"Main must only run once per document". You want a procedure running once.
Mustn't be named 'Main'. 'Main' is only a name without a special function, as
it is described in the help of LO. I have attached your attachment, added teh
macrocode - works like it should work. The sub Main starts when the document is
loaded. The variables are there for all other doing. They will appear also in
the form ...

Where do you get the information from 'Main' is a special keyword for LO-Basic?

I'm not a specialist in writing macros. The component for this report would be
wrong. It must be BASIC. There would be persons who know more about naming of
'SUB Main' and why it is called so.

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