Mashiane Expert Licensed User Longtime User Aug 11, 2021 #1 Ola I am using BANanoSQL inside a library and expect to pass variables to it to open whatever DB i will specify... I am getting an undefined error. Code: Copy // [2453] Dim dbALA As BANanoSQL _dbala=null; // [2454] dbALA.OpenWait(sDatabaseName, sDatabaseName) _dbala_B._sdatabasename=_B._sdatabasename; Thank You
Ola I am using BANanoSQL inside a library and expect to pass variables to it to open whatever DB i will specify... I am getting an undefined error. Code: Copy // [2453] Dim dbALA As BANanoSQL _dbala=null; // [2454] dbALA.OpenWait(sDatabaseName, sDatabaseName) _dbala_B._sdatabasename=_B._sdatabasename; Thank You
alwaysbusy Expert Licensed User Longtime User Aug 11, 2021 #2 I'm wild guessing here as I have almost no info to go on to with that snippet, but I can only suspect sDatabaseName is some global variable. If that is the case, just set a local variable to that global variable first and pass that one into the OpenWait method. Upvote 0
I'm wild guessing here as I have almost no info to go on to with that snippet, but I can only suspect sDatabaseName is some global variable. If that is the case, just set a local variable to that global variable first and pass that one into the OpenWait method.
Mashiane Expert Licensed User Longtime User Aug 11, 2021 #3 As advsised, inside the local sub Code: Copy Dim dbName As String = sDatabaseName .OpenWait(dbName, dbName) Nice one! Upvote 0
As advsised, inside the local sub Code: Copy Dim dbName As String = sDatabaseName .OpenWait(dbName, dbName) Nice one!