Hi all
I'm updating my app and replace all MsgBox that are depreciated to MsgBoxAsync.
I have a problem because MsgBoxAsync is not modal anymore
I have a code for example
When transfer failed the MsgBoxAsync appears for a few seconds and the code doesn't stop like it used to be with MsgBox. So I modified my code to
And now I have the error - Resumable subs return type must be ResumableSub (or none).
So what can I do? I can keep MsgBox but is there any other options?
I attached my small project.
I'm updating my app and replace all MsgBox that are depreciated to MsgBoxAsync.
I have a problem because MsgBoxAsync is not modal anymore
I have a code for example
B4X:
Private Sub ApplyServerResponse as Boolean
Dim TransferResult as String
TransferResult=GetParsedResultFromJSON ' Sub that takes response from the server JSON, pasrsed it and returns result
If TransferResult<>3 then
MsgBoxAsync("Transfer failed","Error")
return False
End If
'''
'Save Result into DB
Return True
End Sub
When transfer failed the MsgBoxAsync appears for a few seconds and the code doesn't stop like it used to be with MsgBox. So I modified my code to
B4X:
Private Sub ApplyServerResponse as Boolean
Dim TransferResult as String
TransferResult=GetParsedResultFromJSON ' Sub that takes response from the server JSON, pasrsed it and returns result
If TransferResult<>3 then
MsgBoxAsync("Transfer failed","Error")
Wait For MsgBox_Result(Res as Int)
if Res<>DialogResponse.Postitive then
Return False
end if
End If
'''
'Save Result into DB
Return True
End Sub
And now I have the error - Resumable subs return type must be ResumableSub (or none).
So what can I do? I can keep MsgBox but is there any other options?
I attached my small project.