Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Data Sessions -- What are they good for
Message
De
08/12/1999 00:01:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00300134
Message ID:
00300209
Vues:
33
>Now that I have begun to skim the suface on Private Data Sessions, I have a basic questions -
>
>Why use them at all??

Ken-
In addition to what all of the others have said, private DS promotes encapsulation in your forms, and forces you to think about parameter passing instead of inter-form dependencies. After you start using private datasessions, you will start to notice that your forms become more transportable- they can be called from anywhere, any number of times, and do not depend on an environment already set up in a calling form. Your forms fend for themselves, because their data environment and record pointers are taken care of inside the form.

Peter-
If you ever do write your own framework, you should think long and hard before using forms that depend on the default datasession. IMHO, this scheme shows tendencies to do things the FPW 2x way, and not the OO way. Handling things like record pointer coordination should be handled via a forms manager or some other object set up for inter-form communication.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform