I've copied from the jRDC2 Post the following code:
The line
displays an underline error (Warning 22: Types do not Match) and when trying to compile this error arises:
incompatible types: String cannot be converted to httpjob
Am I doing something wrong or this code is incorrect? I've B4J 5.90 and the last DBRequestManagerResumableSubs.zip
P.D: The intellisense displays that ExecuteBatch returns a String but in DBRequestManager it doesn't return a value
B4X:
Sub InsertRecord (Name As String)
Dim cmd As DBCommand = CreateCommand("insert_animal", Array(Name, Null))
[CODE]Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null)
Wait For(j) JobDone(j As HttpJob)
If j.Success Then
Log("Inserted successfully!")
End If
j.Release
End Sub
The line
B4X:
Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null)
incompatible types: String cannot be converted to httpjob
Am I doing something wrong or this code is incorrect? I've B4J 5.90 and the last DBRequestManagerResumableSubs.zip
P.D: The intellisense displays that ExecuteBatch returns a String but in DBRequestManager it doesn't return a value