TorontoJim Active Member Licensed User Longtime User Apr 5, 2016 #1 I'm trying to implement the KVS for the first time. I'm getting this error: Code: Copy Unknown type: resultset Are you missing a library reference? (screen shots of all this are attached) I've read several threads on this and can't see that I'm missing anything. I'm using B4J 4.20. I've added SQLite to the header of the main script: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 400 #AdditionalJar: sqlite-jdbc-3.7.2 #AdditionalJar: bcprov-jdk15on-150 #End Region In the class module "sql1" is red: Code: Copy Public Sub Initialize (Dir As String, FileName As String) If [color=red]sql1[/color].IsInitialized Then [color=red]sql1[/color].Close [color=red]sql1[/color].InitializeSQLite(Dir, FileName, True) CreateTable End Sub These are the libraries added. I tried adding jSQL but that didn't solve it.
I'm trying to implement the KVS for the first time. I'm getting this error: Code: Copy Unknown type: resultset Are you missing a library reference? (screen shots of all this are attached) I've read several threads on this and can't see that I'm missing anything. I'm using B4J 4.20. I've added SQLite to the header of the main script: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 400 #AdditionalJar: sqlite-jdbc-3.7.2 #AdditionalJar: bcprov-jdk15on-150 #End Region In the class module "sql1" is red: Code: Copy Public Sub Initialize (Dir As String, FileName As String) If [color=red]sql1[/color].IsInitialized Then [color=red]sql1[/color].Close [color=red]sql1[/color].InitializeSQLite(Dir, FileName, True) CreateTable End Sub These are the libraries added. I tried adding jSQL but that didn't solve it.
TorontoJim Active Member Licensed User Longtime User Apr 5, 2016 #2 I realized this wasn't in there, so I added it. Did not affect the error. Code: Copy kvs.Initialize(File.DirApp, "datastore") Upvote 0
I realized this wasn't in there, so I added it. Did not affect the error. Code: Copy kvs.Initialize(File.DirApp, "datastore")
Erel B4X founder Staff member Licensed User Longtime User Apr 6, 2016 #3 You need to add jSQL. Upvote 0
TorontoJim Active Member Licensed User Longtime User Apr 6, 2016 #4 I just added it in. I'm still getting the error that: Code: Copy Undeclared variable sql1 is used before it was assigned any value Upvote 0
I just added it in. I'm still getting the error that: Code: Copy Undeclared variable sql1 is used before it was assigned any value
I inakigarm Well-Known Member Licensed User Longtime User Apr 6, 2016 #5 You need to Dim the sql variable Code: Copy Dim sql1 As SQL Upvote 0
TorontoJim Active Member Licensed User Longtime User Apr 6, 2016 #6 The declaration was commented out in Process_Globals. Thank you. I don't know when I did that, again, PICNIC. Upvote 0
The declaration was commented out in Process_Globals. Thank you. I don't know when I did that, again, PICNIC.