Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection in Visual foxpro
Message
 
À
21/09/2004 01:25:03
Florence Lee
Visual Solutions (M) Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00944389
Message ID:
00944521
Vues:
9
Yes - reuse the connection. VFP-SQL apps I've seen usually have a public variable or a form property that is assigned the connection handle at the top of the application. If that handle is lost (which I have never experienced), then something is very wrong.

ON ERROR with an AERROR() service would provide specific information about the failure. The Foxpro engineers at MS have also added TRY/CATCH features to VFP - if connectivity is an issue, you could implement these features to restablish the connection.



>Hi,
>
> Is that means you suggest to reuse the connection instead of always open and close connection?
>
>Thanks,
>
>regards,
>florence
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform