Hi Frank,

did you change something in 680m241, the current dev. snap.?

There ThisComponent does not work from the Basic IDE when the macro is
located outside a document == in the user's library:

* open a Writer doc
* open the basic IDE
* write a macro in any of the USER's libraries (NOT the doc'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. To get
a valid reference you have to run the "outer"-macro from the Writer
doc's Tools - Macro - Run macro... menu. (== debugging as become
impossible if the macro isn't inside the doc).


Resuming: In 680m241 ThisComponent returns NULL if you run a macro in
the user's library from the IDE when there are other components.
Looks like an issue, doesn't it? Was it introduced by your work for the
odbmacros milestone ? (does not sound possible, because it is in a CWS,
not yet in the main build :-(  ... but who nows! I gave up trying to
understand when exactly gets something included in the version I can get
as dev.snaps.)

So I repeat, in 680m241 build 9244 (current dev. snap.) we can find this
buggy behavior. In the milestone OOo_2.4.238.odbmacros.m1.,
ThisComponent *works* when you run the macro in the user's library from
the IDE and there is a Writer doc open (ThisComponent points to that
doc's model).



Regards
Ariel.


--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to