iOS Question jRDC2 with cmd not a valid identifier error

Binary Soft

Licensed User
Longtime User

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
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 = ""
    Private const rdcTest As String = ""
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.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.