Fernand Vanrie schreef:
Fernand Vanrie schreef:
Hello all,
I can copy/install a Basiclibrary from one Doc to a other Doc!!!
But: i can not copy/install the BasicDialogs of the same library ???
I can get the Dialoglibrary of the current document (=
DialogLibraries)
I can get the Global DialogLibraries ( = Globalscope DialogLibraries)
For a BasicLibrary , following code works:
<cModuleContents = oSourceLib.getByName( cModuleName ) >
gives me a string containing the macro codelines
<oIDestLib.insertByName( cModuleName, cModuleContents )>
Install the module into te Lybrary
For a BasicDialog , following code do NOT WORKS
<cModuleContents = oSourceLib.getByName( cModuleName ) >
gives no string but a object (do not now what in is)
<oDestLib.insertByName( cModuleName, cModuleContents )>
gives a error
The problem seems to be that whe can get the Dialogs of the current
Doc with
< OsourceLib = BasicDialogs> = the dialogs in the document where in
the macro runs
sorry "= BasicDialogs" is a typo read "=DialogsLibraries"
But my problem can be narowed to this:
For coping Basiclibraries from Doc1 to Doc2 we can get acces to the 2
Macrocontainers like
*Code:*
source = Doc1.BasicLibraries
destignation = doc2.BasicLibraries
For coping the DialogContainer its not so evident
*Code:*
source = DialogLibraries 'from the doc wherin the macro is running
destignation = ????? ' there is no equivalent for
.basiclibraries
Is there a workaround to get to DialogsContainer of a document ?
'= DialogLibraries' takes always the document from where we runs the macro
Having the Dialogs saved in OO
<OsourceLib = Globalscope.BasicDialogs> = thje dialogs in "My Macros"
so i think I need somting lie <ODestLib = odoc.BasicDialogs but
thats not working ofcource, but odoc.BasicLibraries do's the job ????
are the dialogs somewhere in hte object retrieved from
odoc.BasicLibraries ???
How can the dialog be inserted in the DestenationLibary of the doc
Thanks for any hint
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]