Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment Vs DataSession
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00177303
Message ID:
00177311
Vues:
43
>Hi!
>
>What is the exact "relation" between DataSession and DataEnvironment?
>
>I know that a DE is a class, in charge of handling the cursors and relations. I also know about private or default DataSessions.
>
>My question is: Does the form DataEnvironment exactly match its private DataSession? In other words, are the Data in the DE corresponding exactly to the data of the private datasession? If I switch the dataEnvironment at runtime in my form, will the DataSession remain the same or not? Have I got ONE DE for ONE Datasession and vice versa?
>
>Is my QuestionSET clear?
>
>Thank you

I would say Private DataSession>=DataEnvironment. :)
Private DataSession along with the tables, views specified in your DataEnvironment includes also all areas/aliases which were open for example because they were specified as type of (SQL statement, Query) RowSource for list- or comboboxes, (or RecordSource for grid). Any table you opened with USE or cursor you created with SQL statement somewhere in your form also is included in your datasession (but not in Form.DataEnvironment).

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform