Hi Drew, >> (update after digging some code: Argh, that's another incarnation of >> "the application framework doesn't care for database documents". >> CurrentComponent is finally fed by the desktop's active frame, which is >> set by the application framework - whenever a "standard" app's document >> window gets activated. Base is no "standard" app. Sigh.) >> > So - I should open an issue?
should ... feel free to do. Might be easily fixable with the other changes I do in the current CWS ... >> First, CurrentComponent is a global state. Global states are Evil (TM). >> That's a mere religion :), backed up by long-year experience. State held >> in some global place tends to break, or lead to hacks. > > I belong to the same religion - but sometimes you just have to sin. :) > Ok but did you just expand the scope of this new variable. It is not > just for Base documents but for any frame? Ah - my apologies. In fact I think this cannot be separated. (Well, it can, probably. But with quite some effort/hacks only, so why should it?) So yes, I think I'm talking about a variable which would be available in all Basic macros in all document types. It's just that everywhere except in forms/reports/queries/designers of a database document, it would be the very same thing as ThisComponent, and thus of rare interest only. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
