Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which type of class to use?
Message
De
03/01/2005 17:50:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00973101
Message ID:
00973956
Vues:
21
>>I like the session class, which has to be created in a prg. The private datasession option then allows you to isolate your tables from the rest of your app in a secure way. We've found since switching to this kind oa scheme that our errors and data reliability has improved dramatically.
>
>Just intereted to know, how do you pass data between your objects when they all have private datasessions ?

Really good question! We try to get each module to do as much work as possible internally, ie quite a few tables are opened many times in different sessions. Doesn't seem to be any performance issue. Where we do need to pass data we either pass in the datasessionid or use XML. I asked Ken Levy about possibility of doing something like
Select * from mytable into cursor mycursor datasessionid x
but he couldn't see the justification at the time.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform