Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLStringConnect error trapping
Message
 
 
To
08/02/2002 21:02:13
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00617821
Message ID:
00617825
Views:
23
* Disable errors 
= SQLSETPROP(0,'DispWarnings',.F.)  
* you can also disable login errors
= SQLSETPROP(0,'DispLogin',3)  
lnConn = SQLSTRINGCONNECT(lcConnStr)
>Hi, could someone please help.
>
>How is the following error trapped so that the default foxpro error messages are prevented from displaying.
>
>handle=sqlstringconnect(dsn)
>if handle<1
>** trap error here if for example the network connection or a web connection is lost
>endif
>
>My application requires monitoring of a web connection to a web server. The user needs to be alerted when the connection is lost, but at the moment the foxpro message takes over and locks the whole app up.
>
>Many thanks in advance.
>
>Kind regards,
>Mike Mayo
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform