Joined: 24 Jan 2006
Location: Wisconsin, USA
|Posted: Sun Mar 28, 2010 4:58 am Post subject: Simple dialog creates error, only the first time
|I created a dialog box using the GUI (drawing the button and label box on the rectangle, etc.)
Here is the code that calls the dialog box:
Dim oDialog as Object
oDialog = createUnoDialog(DialogLibraries.Standard.Dialog1)
End sub [/code]
The first time the dialog gets called, this error message appears:
[code]BASIC runtime error.
An exception occurred
The next time the dialog gets called, it works fine. I have tried adding various loadlibrary statements in Sub Main and in subShowWarningDialog (quoted above) but it's not working. For one thing, I don't know what library needs to be loaded.
Thanks for any ideas.