Greetings,
Frank Schönheit - Sun Microsystems Germany wrote:
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".
So, this is a call for feedback: If anybody feels comfortable with the
matter, then please tell me what you think would work best.
and surely from within the Basic IDE during
developing it.
Well, for myself I almost never run things from within the IDE. The
exception is when working on a dialog or a function that acts as a
manager ( opens db, forms or runs reports ). But for working with the
procedures that are called from UI event - set break points in the IDE
and switch to the form to call the procedure.
What's your expectations how ThisComponent should behave?
OK my thought on this is to have thisComponent act as if it where coming
from a routine in a user library when contained in a library embedded
within an ODB file. In other words a change in behavior from the current
implementation. This includes then that the DataBase document now be
available to the variable just like a form is today.
So - assign a basic procedure, in a library embedded in the odb file, to
a custom menu item.
The menu is attached to an ODB file window. thisComponent = the database
document
The menu is attached to a form window. thisComponent = the form document
The menu is attached to a report window. thisComponent = the report document
For forms and reports it would be the same whether they are opened for
edit or data entry.
The menu is attached to Dataview window. thisComponent = the dataview
componenet
The menu is attached to QueryDesign window. thisCompoent = the query
designer component
Open form in edit mode, open property editor for list box, open query
designer from property editor. thisComponent = query designer component
Well, I think I'll leave this email here -
Thanks
Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]