Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection in Visual foxpro
Message
 
To
21/09/2004 01:25:03
Florence Lee
Visual Solutions (M) Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00944389
Message ID:
00944521
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform