[Libreoffice-bugs] [Bug 121197] Macro: run from Basic editor but error after running from document
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Nov 6 14:13:09 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=121197
--- Comment #2 from Kamil Landa <kamlan at post.cz> ---
Now I also discover it isn't bug :-). Now I'm testing in macro if oDoc IS
thisComponent
Sub macroBAD(optional oDoc as object) 'after click on button the atribute oDoc
is com.sun.star.awt.ActionEvent
if IsMissing(oDoc) OR (NOT (oDoc IS thisComponent)) then
oDoc=thisComponent 'correct
msgbox
oDoc.drawpage.getforms().getbyname("Form").getByName("buttonBAD").name 'error
after run from document
End Sub
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181106/f245e919/attachment.html>
More information about the Libreoffice-bugs
mailing list