Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forgot to attach the code!
Message
From
29/09/1998 18:57:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Forgot to attach the code!
Miscellaneous
Thread ID:
00142162
Message ID:
00142162
Views:
53
Reference my message above, here is the procedure code.

Terry
****************************************************************
PROCEDURE CHECKCON

LOCAL lnreturn, lcURL, lnflags, lnreserved

lnreturn = 2
lcURL = "http://www.ndss.com"
lnflags = 1
lnreserved = 0

DECLARE Integer InternetCheckConnection in WININET as InternetCheckConnection String @, Integer, Integer

lnreturn = InternetCheckConnection(@lcURL,lnflags,lnreserved)

DO CASE

CASE lnreturn = 1

MessageBox ('Connection was Successful')

CASE lnreturn = 0

MessageBox ('No Connection Detected')

OTHERWISE

MessageBox ('Connection Error: '+ LTRIM(STR(lnreturn)))

ENDCASE

RETURN lnreturn
**************************************************************
Reply
Map
View

Click here to load this message in the networking platform