Android Question Jrdc2 - Error on "CreateCommand(Name As String, Parameters() As Object) As DBCommand"

Hishow

Member
Dear B4A Expert,

Good day to you all. Please I am having problem with this jrdc2 with SQLite Database in B4A.
I have successfully connected to the jrdc2 using B4J
But in my B4A, a particular Sub is showing Error saying "Unknown type: dbcommand, Are you missing a library reference?"

This is the sub showing that Error:

DbCommand Error - "Unknown type: dbcommand, Are you missing a Library reference":
Sub CreateCommand(Name As String, Parameters() As Object) As DBCommand ' This line is one showing the error
    Dim cmd As DBCommand
    cmd.Initialize
    cmd.Name = Name
    If Parameters <> Null Then cmd.Parameters = Parameters
    Return cmd
End Sub

Currently I have the following References: Core, OkHttpUtils2, RandomAccessFile, SQL and XUI

Please help.

Thank you in advance
 

Hishow

Member
Ha aaaa, Oh my God. In fact, YOU ARE THE BOSS.

I actually missed these lines:
Missing Lines:
Type DBResult (Tag As Object, Columns As Map, Rows As List)
   Type DBCommand (Name As String, Parameters() As Object)

Immediately I completed it Like as shown below, every became normal.

Corrected Code:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Private xui As XUI
    Type DBResult (Tag As Object, Columns As Map, Rows As List)
    Type DBCommand (Name As String, Parameters() As Object)
    Private const rdcLink As String = "http://192.168.0.12:17178/rdc"
End Sub

Thank you so much sir
 
Upvote 0
Top