Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change connection string of private data session?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Divers
Thread ID:
01076193
Message ID:
01076578
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform