Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change connection string of private data session?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Miscellaneous
Thread ID:
01076193
Message ID:
01076578
Views:
21
>Once a form is open and using a private datasession, how can I change the connection string of that datasession - given that the views have already been opened and used by the form? Do I requery each view in the private datasession - or do I have to close and reopen the form - or does the form just 'handle it'? Does the session handle change?
>
>In my situation, I have a combo on the form allowing the user to select which 'back end' they want to use.

Hi Michael,

it's not necessary to close the form but you need to close each view and open it again if you want to change the connection. The backend of a connection cannot be changed while the connection is open.

BTW: The datasession has nothing to do with the connection. You can use one and the same connection within all of your forms.
Holger Vorberg
Germany
Previous
Reply
Map
View

Click here to load this message in the networking platform