Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datasessions
Message
De
22/03/2007 09:11:22
 
 
À
21/03/2007 18:13:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01206843
Message ID:
01207024
Vues:
15
>Here's some theroetical questions just to further my understanding of how things work.
>
>1. When the application has multiple forms open and each form has a PRIVATE datasession, which datasession is in play when an external PRG is run? I would assume it would be the datasession associated with the form that was active when the PRG was called. Is that correct?
>
>2. What if the PRG is called from a menu selection in the main menu (_screen menu)?
>
>3. Can a form have multiple datasessions?
>
>4. Can a datasession be changed or a different datasession be selected in PRG code?
>
>5. Is a datasession essentially the same as the dataenvironment? If not how do they differ?
>
>Thanks

I see you already received all answers, i.e. basically you can have as many datasessions as you want but you better control each switch explicitly in code, i.e. using SET DATASESSION TO every time you really want to do it. When I looked at the same set of questions/answers (about 10 years ago) I firmly decided that I will not use private datasessions, and instead will develop code/interface that doesn't rely on current situation with data record pointers.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform