Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote Connections
Message
 
To
28/10/2005 17:48:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01063183
Message ID:
01063254
Views:
14
Steve,

Here is one of the solutions:
gnConnHandle = SQLCONNECT(.....)

IF gnConnHandle <= 0
   = MESSAGEBOX('Cannot make connection')
    return
Endif
if type([SQLGETPROP(gnConnHandle,"ConnectBusy")])="L"
*     your code goes here
else
* need to reestablish connection
endif
>I am pretty sure I have asked about this before but I am still don't have a solution and really having trouble with this issue.
>
>When my app starts one of the first things it does is create a connection to an AS400 libarary. Different functions of the app use this connection handle. For some reason the connection will get dropped. I don't know how to trap for the dropped connection. And this dropped connection causes all kinds of problems in the app which depends on it.
>
>I need to trap for drop and re-establish the connection if possible.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform