Hello all,
I have these codes
Sub Test runs without error but there is no log or message box appear, why is that?
Am I missing something here? (Using B4A 8)
Note : the java Server was not running, so the value of j.Success should be false.
I have these codes
B4X:
Sub Test
If(reqM.IsInitialized = False) Then reqM.Initialize(Me, Main.PUB_CONN_STR)
Private cmd As DBCommand
cmd.Initialize
cmd.Name = "send_bnk1"
cmd.Parameters = Array As Object(1,2,3)
Wait For (reqM.ExecuteCommand(cmd,"send_bnk1")) JobDone(j As HttpJob)
If j.Success Then
Log(1)
Msgbox("OK","")
Else
Log(0)
Msgbox("ERR","")
End If
End Sub
Sub JobDone(Job As HttpJob)
If Job.Success = False Then
If Job.Tag = "send_bnk1" Then
Rsl = -1
End If
Else
If Job.Tag = "send_bnk1" Then
Rsl = 1
End If
End If
Job.Release
End Sub
Sub Test runs without error but there is no log or message box appear, why is that?
Am I missing something here? (Using B4A 8)
Note : the java Server was not running, so the value of j.Success should be false.