How can I make the below code stop at the msgbox and display when it succeeds and when it fails. It does not stop even with the msgbox in the code.
B4X:
'DOWNLOAD COMPLETED
Sub FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
Log(ServerPath & ", Success=" & Success)
If Success = False Then
Msgbox(LastException.Message & ". No Files were downloaded to device.".ToUpperCase,"")
'Log(LastException.Message)
Return
Else
Msgbox("Files downloaded successfully to device.","")
End If
End Sub