C caillaud Member Licensed User Longtime User Feb 29, 2012 #1 hi how is it possible to detect no response from the server: telecommunication incident server out of order and so inform the owner of the smartphone: incident try again later thanks in advance sincerely michel
hi how is it possible to detect no response from the server: telecommunication incident server out of order and so inform the owner of the smartphone: incident try again later thanks in advance sincerely michel
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2012 #2 ResponseError event will be raised when there is a timeout. Upvote 0
C caillaud Member Licensed User Longtime User Mar 1, 2012 #3 hi thanks for your answer does your answer mean this kind of code correct: Code: Sub JobDone(job As String) try label1.text="HelloWorld" HttpUtils.Complete = False catch label1.text="Sorry incident try later" HttpUtils.Complete = False end try end sub sincerely michel Upvote 0
hi thanks for your answer does your answer mean this kind of code correct: Code: Sub JobDone(job As String) try label1.text="HelloWorld" HttpUtils.Complete = False catch label1.text="Sorry incident try later" HttpUtils.Complete = False end try end sub sincerely michel
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2012 #4 No. I didn't know you are using HttpUtils. In that case you should check IsSuccess. If it is false then you should show a message to the user. There should be an example in the HttpUtils exampel. Upvote 0
No. I didn't know you are using HttpUtils. In that case you should check IsSuccess. If it is false then you should show a message to the user. There should be an example in the HttpUtils exampel.
C caillaud Member Licensed User Longtime User Mar 1, 2012 #5 Hi thanks a lot the following code seems working fine: Code: Sub JobDone(job As String) If HttpUtils.issuccess(myurl) Then label1.text="helloWorld" else label1.text="sorry:incident try later" endif HttpUtils.Complete = False end sub sincerely michel Upvote 0
Hi thanks a lot the following code seems working fine: Code: Sub JobDone(job As String) If HttpUtils.issuccess(myurl) Then label1.text="helloWorld" else label1.text="sorry:incident try later" endif HttpUtils.Complete = False end sub sincerely michel