iOS Question jRDC2 with cmd not a valid identifier error

Binary Soft

Member
Licensed User
Longtime User
Hello,

I test b4a jRDC2 Client to connect with my jRDC2 server. Everything is fine.

But I started my jrdc2 client for b4i.

1. I add two libraries: iHttpUtils2 and iRandomAccessFile.
2. Add and copy DBRequestManager.bas into project.


In Main
B4X:
Sub Process_Globals
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page

    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.1.5/rdc"
    Private const rdcTest As String = "http://192.168.1.5/test"
    
End Sub

Sub CreateRequest As DBRequestManager
    Dim req As DBRequestManager
    req.Initialize(Me, rdcLink)
    Return req
End Sub

Sub CreateCommand(Name As String, Parameters() As Object) As DBCommand
    Dim cmd As DBCommand
    cmd.Initialize
    cmd.Name = Name
    If Parameters <> Null Then cmd.Parameters = Parameters
    Return cmd
End Sub

My b4i project show error "cmd not a valid identifier" in
CreateCommand module.

Thanks.
 
Top