DECLARE SHORT InternetGetConnectedState IN Wininet.dll; Long @ lpdwFlags, Long dwReserved lnConnectedState = 0 lnRC = InternetGetConnectedState(@lnConnectedState, 0) ? lnRC, lnConnectedState>I had a procedure which tested if my pc was connected on internet and how it was connected. I called it getstatusconnection.
> lcStatus = Alltrim(Transform(oFtp.GetStatusConnection())) > Do case > Case lcstatus = '-1' > lntenta = lntenta + 1 > Case '2' $ lcstatus > *connesso via LAN > Case '1' $ lcstatus > *connesso via Modem > Case '4' $ lcstatus > * connesso con proxy > Otherwise > lntenta = lntenta + 1 > EndCase >>Well I cannot find this procedure anymore :(