To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=85078 Issue #|85078 Summary|ThisComponent returns null when debugged in the Basic |IDE Component|framework Version|680m241 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|scripting Assigned to|fs Reported by|arielch
------- Additional comments from [EMAIL PROTECTED] Tue Jan 8 11:27:41 +0000 2008 ------- ThisComponent does not work when debuggin a macro in the Basic IDE, if this macro is NOT located inside a document, that is, it is located in one of the user's libraries: * open a Writer document * open the Basic IDE * write a macro in any of the USER's libraries (NOT the document's) like Sub Main oDoc = ThisComponent.CurrentController End Sub In previous versions, you could run this macro in/from the IDE. ThisComponent will point to the Writer doc. NOW it returns null and trying to get the current controller throws an exception. To get a valid reference you have to run the "outer"-macro from the Writer doc's Tools - Macro - Run macro... menu. IIRC ThisComponent could also get a NOT NULL reference to the BasicIDE module, if it was the only component in the Desktop, now it does not. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]