Hi,
In order to make sure that certain libraries are available, one has to
load them.
Since (to me) it is not clear what happens if a librabry is already
loaded (is a new reference made or not?) one can add a check.
Now when more than one libraries are needed, one gets a sequence as:
If (Not Globalscope.BasicLibraries.isLibraryLoaded("Tools")) Then
Globalscope.BasicLibraries.LoadLibrary("Tools")
End If
If (DialogLibraries.isLibraryLoaded("x")) Then
DialogLibraries.LoadLibrary("x")
End If
oDlg = CreateUnoDialog(DialogLibraries.x.dlgx)
In my experience, this regularly leads to runtime errors on the line
with CreateUnoDialog.
I think that has to do with timing.
Error message (my translation:
"Action not supported.
Invalid call of procedure."
So my questions:
- Is it needed to do the load within a If-EndIf loop?
- If so, can timing be a problem and how to avoid it?
Thanks,
Cor
--
Cor Nouws
Arnhem - Netherlands
nl.OpenOffice.org - marketing contact
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]