Am Donnerstag, den 13.12.2007, 16:07 +0100 schrieb Frank Schönheit - Sun Microsystems Germany: > After digging deeper into the topic, I somewhat changed my mind and in > fact think we need to introduce another global variable, to differ > between "the document where the macro is located" and "the document from > where the macro was called".
I could imagine some other very useful shortcuts especially - - but not only - for base: - get a list of open documents (without going throught the desktop discriminating other doc types - not easy when having forms and writer docs, I think) e.g. aBaseDoc.Components().getByIndex()/.getByName() - get access to the four sections of a base doc container: tables, queries, forms and reports (although that should be easy doable as it is now ... lacking time to search and test) e.g. aBaseDoc.Forms() (doesn't this exeist already?) > Imagine a macro configured to appear in the toolbar of a form, but > located (as macro) in the embodying database document. You want to > execute this macro from within the form, perhaps from within the > database document, and surely from within the Basic IDE during > developing it. > What's your expectations how ThisComponent should behave? Do I understand right: the base container doc is a component and each su-document contained is loaded as such when openened? I'll read the wiki pages, think and come back. Marc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
