Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSession and Queries ran from an object???/
Message
De
11/06/2014 12:11:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/06/2014 11:15:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01601560
Message ID:
01601674
Vues:
39
>The VFP architects could have simply added a property on Custom objects that determine "shall the results of new queries created with this object be created in the current DataSession, or the original Data Session which was active when the object was created." That would be most useful to me at this time.

IMO, it's good that they didn't. It's not just the custom objects, you can have cursor making anywhere, and so it would be yet another property to set. Not to mention that it would also raise the question "how many levels deep?" or "if some of the callers on the stack don't have this property set, should it still work"?), what about other DS related issues? What if an object with that property set changes the date format, which DS should be affected? Etc etc...

It's enough that an object living in a different DS inherits the private variables from the stack (so we have a mix of environments - variables visible all the way down the stack, cursors and settings separated by DSs), throwing in a setting like that would make our lives a madhouse.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform