Hi there
I'm using the kvs class in my project. I'm able to save and retrieve records however after an hour of inactivity in my app and the app resumes, the kvs cannot be read and raises an error of CantOpenDatabase: specified directory or database does not exist.
The database path is declared as a variable in a module. I have updated the class to include this method..
This method is supposed to test if the db is still alive and if not initializes it, however the Initialize call does not compile. I'm still baffled as to why is this. It says it expects a "," but that is there already.
Perhaps I'm missing something.. Can someone please advise me here..
I'm using the kvs class in my project. I'm able to save and retrieve records however after an hour of inactivity in my app and the app resumes, the kvs cannot be read and raises an error of CantOpenDatabase: specified directory or database does not exist.
The database path is declared as a variable in a module. I have updated the class to include this method..
B4X:
private Sub CheckOpen
If sql1.IsInitialized = False Then
Initialize(MasterDir,MasterFile)
End If
End Sub
This method is supposed to test if the db is still alive and if not initializes it, however the Initialize call does not compile. I'm still baffled as to why is this. It says it expects a "," but that is there already.
Perhaps I'm missing something.. Can someone please advise me here..