Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking Internet Connectivity
Message
From
25/08/2004 16:09:58
 
 
To
25/08/2004 14:39:38
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00936372
Message ID:
00936407
Views:
25
Nice code, let's save a couple of lines:
FUNCTION CheckInternetConnection
LPARAMETERS tcWebAddress
DECLARE Integer InternetCheckConnection;
 IN WININET.DLL;
 String Url, Long dwFlags, Long Reserved
 RETURN (InternetCheckConnection(tcWebAddress,1,0)<>0)
ENDFUNC
>How does one check for Internet Connectivity from within a Visual FoxPro 8 Application. - Some sample code would be most helpful.
>>

>Hello Mahmud

>Here is one:
? CheckInternetConnection('http://www.microsoft.com')

FUNCTION CheckInternetConnection
LPARAMETERS tcWebAddress
DECLARE Integer InternetCheckConnection;
 IN WININET.DLL;
 String Url, Long dwFlags, Long Reserved
IF InternetCheckConnection(tcWebAddress,1,0)<>0
   RETURN .T.
ELSE
   RETURN .F.
ENDIF
>Hope this helps

>Claudio
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform