Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verify a connection programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00577460
Message ID:
00577508
Views:
29
It is the way to verify connection. If you need to verify connection when you create dbc programmatically, then you can use connectionhandle. Like:
*====================
store SQLSTRINGCONNECT(;
dbgetprop(connection_name,"connection","connectstring"));
TO gnConnHandle
if gnConnHandle >0
wait wind "Connection Established"
endif
sqldisc(0)
*--------------------


><< Can you verify that ConnectionHandle>0? >>
>
>I don't need to. I'm using Remote Views. Views handle all that. Only when using SPT is when you perform all that checking.
Previous
Reply
Map
View

Click here to load this message in the networking platform