[Gambas-user] WebCheck
R. Stormo
rohnny at ...1248...
Wed Mar 1 16:16:18 CET 2006
I want to make a webupdate routine and looking for an example or a routine to
use.
I have been looking at the example httpget. But I'm not getting data while
waiting for the rutine to end. The data is comming after I have finished
myclass and app. 1 sec after that.
What I want is a routine that holds while the check are done and return
true/false when finished getting all the data.
Something like hFile= open "file" for read wait
I have used the basic from the example.
MyHTTP = NEW HttpClient AS "MyHTTP"
MyHTTP.TimeOut = 10
object.Attach(ME, ME, "MyHTTP")
MyHTTP.URL = "forum.stormweb.no/fakturaupdate.txt"
MyHTTP.Get()
PRINT MyHTTP.Status
Have used the examples' read and finnished also.
Thaught this could do it but no luck
do while MyHTTP.status<>0
loop
check the result and return from class
Gambas2-1,9,25
--
Regards
Rohnny Stormo
-----------------------------------------
Gambas brings Basic to Linux.
My Gambas Community http://forum.stormweb.no
--
View this message in context: http://www.nabble.com/WebCheck-t1206090.html#a3184844
Sent from the gambas-user forum at Nabble.com.
More information about the User
mailing list