* Marc Santhoff <[EMAIL PROTECTED]> [190605, 20:55]:
> Am Sonntag, den 19.06.2005, 18:19 +0200 schrieb Paolo Mantovani:
> > Hi Ennio
> > 
> > Alle 00:15, giovedì 16 giugno 2005, Ennio-Sr ha scritto:
> > [...]
> > > Concerning the second part of the captioned subject,
> > > [...]
> > > This example was taken from p. 102 of the Italian version:
> > >
> > > Sub test_search
> > > '------------------------
> > >
> > > Dim SearchDesc As Object
> > > Dim Doc as Object
> > >
> > > Doc = StarDesktop.CurrentComponent       '[*]
> > [....]
> > > [*] BASIC runtime error: Property or method not found.
> > 
> > When you're in the IDE the CurrentComponent is the IDE itself !
> > therefore you must run the macro from a Writer document
> 
> To solve this problem immediately: use "thisComponent" instead of
> "currentComponent" and you avoid getting the IDE but only "real
> document" components. 

Thank you Marc (and Christian Junker and Emanuele) for giving me 'fresh
fishes' immediately: I strongly needed them to recover enough strength
to learn fishing on my own, as Paolo suggested ... ;-)

Regards,
        Ennio.

-- 
[Perche' usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.   \\?//
 Fa' qualche cosa di cui non sei capace!"  (diceva Henry Miller) ]    (°|°)
[Why use Win$ozz (I say) if ... "even a fool can do that.              )=(
 Do something you aren't good at!" (as Henry Miller used to say) ]

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

Reply via email to