Hola Guillermo,
I have this in my system.vcx. I created a property called IsConnectedToInternet (OK, so the name is a bit long, at least it's self-documenting). The access method below then sets the property on the fly everytime I access the property. That way, if my connection goes down, I can identify the problem. I'm sure that I got the declare from the UT, but I can't remember from whom. I wish I could remember who had originally posted this so I could give them credit.....
PROCEDURE isconnectedtointernet_access
Declare Integer InternetGetConnectedState in WinINet.Dll Long @lpdwFlags, Long dwReserved
lnFlags = 0
Retval = InternetGetConnectedState(@lnFlags,0)
IF Retval > 0
This.IsConnectedToInternet = .T.
ELSE
This.IsConnectedToInternet = .F.
ENDIF
RETURN This.IsConnectedToInternet
ENDPROC
>How could I detect if my computer is connected to the internet.
>
>I'm using wwIPstuff.
>
>Thanks and Regards
>
>Guillermo Bran
>
infile@guate.net