Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify a connection programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00577460
Message ID:
00577508
Vues:
28
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform