Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

These errors are related. The first is because ConnectDatabase is not accessible & the second because in the error routine DisconnectDatabase is also not accessible. You already have the answer (see -> Calc BASIC | How to call Function in other Library ?. You just need to add:

If Not BasicLibraries.isLibraryLoaded("Library2") then
    BasicLibraries.loadLibrary("Library2")
Endif

before line #7 - the call to ConnectDatabase

Keep this in mind when initially calling TestConnectDatabase1. Library1 needs to be loaded. Probably do both when opening the Base file. Just put a sub in the Standard libraryto load both and attach toOpen Document` event.

Hello,

These errors are related. The first is because ConnectDatabase is not accessible & the second because in the error routine DisconnectDatabase is also not accessible. You already have the answer (see -> Calc BASIC | How to call Function in other Library ?. You just need to add:

If Not BasicLibraries.isLibraryLoaded("Library2") then
    BasicLibraries.loadLibrary("Library2")
Endif

before line #7 - the call to ConnectDatabase

Keep this in mind when initially calling TestConnectDatabase1. Library1 needs to be loaded. Probably do both when opening the Base file. Just put a sub in the Standard librarylibrary to load both and attach toto Open DocumentOpen Document` event.

Hello,

These errors are related. The first is because ConnectDatabase is not accessible & the second because in the error routine DisconnectDatabase is also not accessible. You already have the answer (see -> Calc BASIC | How to call Function in other Library ?. You just need to add:

If Not BasicLibraries.isLibraryLoaded("Library2") then
    BasicLibraries.loadLibrary("Library2")
Endif

before line #7 - the call to ConnectDatabase

Keep this in mind when initially calling TestConnectDatabase1. Library1 needs to be loaded. Probably do both when opening the Base Calc file. Just put a sub in the Standard library to load both and attach to Open Document event.