Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use tables in Private Datasession ?
Message
De
06/06/2012 00:14:17
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
 
 
À
06/06/2012 00:10:34
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01545423
Message ID:
01545424
Vues:
45
>Hi
>I have 2 Modeless forms which set the datasession property to 2 (Private),
>Both of these 2 forms use the same customer file (cusmas.dbf),
>but I find that when I close one form, the customer file also closed in another form.
>
>How can I open and access the same file separately ?
>
>I just only write the open file coding in the DataEnvironment INIT event of the form as follow.
>
>
>USE CUSMAS IN 0 ALIAS cusmas 
>SET ORDER TO CUSNO
>
You could use the AutoOpenTables = .T. and AutoCloseTables = .T properties of the DataEnvironment and remove the code from the Init event.

Cheers,

Luis
I never forget a face, but in your case I will make an exception :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform