Capturing "timeout"

NJDude

Expert
Licensed User
Longtime User
I have this problem, how do I detect a timeout?, for example:

B4X:
req.InitializeGet("http://www.Website.com/Script.php")
req.Timeout = 10000

hc.Execute(req, 1)

And let's say after 10 seconds goes by it times out, how do I capture that event and display a MsgBox or something saying Time out!!!

Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…