Hi
I have a sub I call it with wait for and CallSub3(SyncClass1, "ListItems_ReplaseInto", "1996-11-05", True)
I want if wait for return false to try calling itself again.
The code I use is like that but I am not sure if it is absolutely correct.
Thank you.
I have a sub I call it with wait for and CallSub3(SyncClass1, "ListItems_ReplaseInto", "1996-11-05", True)
I want if wait for return false to try calling itself again.
The code I use is like that but I am not sure if it is absolutely correct.
B4X:
Wait For (CallSub3(SyncClass1, "ListItems_ReplaseInto", "1996-11-05", True)) Complete (Result As Boolean)
If Result = False Then
Msgbox2Async("Warning!!", "The process not complete successfully. Try again?", "OK", "", "NO", Null, True)
Wait For Msgbox_Result (Result1 As Int)
If Result1 = DialogResponse.POSITIVE Then
Wait For (CallSub3(SyncClass1, "ListItems_ReplaseInto", "1996-11-05", True)) Complete (Result As Boolean) ---> Some code here?
End If
End If
Thank you.