With this code in a service:
This code in Main:
gives:
"Current delaration does not match previous one.
result"
on the second line.
Using:
gives the same result
Any suggestions as to why, and how to correct it?
B4X:
Sub Test1String As ResumableSub
Return "String"
End Sub
Sub Test2Boolean As ResumableSub
Return True
End Sub
B4X:
Wait For(CallSub(TestService, "Test1String")) Complete (result As String)
Wait For(CallSub(TestService, "Test2Boolean")) Complete (result As Boolean)
"Current delaration does not match previous one.
result"
on the second line.
Using:
B4X:
Dim rs1 As ResumableSub = CallSub(TestService, "Test1String")
Wait For (rs1) Complete (result As String)
Dim rs2 As ResumableSub = CallSub(TestService, "Test2Boolean")
Wait For (rs2) Complete (result As Boolean)
Any suggestions as to why, and how to correct it?