Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection best practice
Message
 
To
21/11/2002 14:23:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00725402
Message ID:
00725419
Views:
9
This message has been marked as the solution to the initial question of the thread.
You may use
If Type('DBGetProp("myConnection","CONNECTION","DataSource")') = 'U'
    * does not exist
EndIf
Regards,
Jose

>Is there a best practice for checking if the creation of a connection is successful?
>
>Ex.
>open data myDatabase
>create connection myConnection ;
>  datasource 'myODBCConn' ;
>  userid 'myUserID' ;
>  password 'myPassword'
>
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform