Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects across DataSessions?
Message
De
03/09/2002 13:24:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Objects across DataSessions?
Divers
Thread ID:
00696302
Message ID:
00696302
Vues:
63
I seem to have found a blank spot in my OOP knowledge regarding how objects and VFP Datasessions interact. Specifically, I wanted to hang a few lookup type business objects off the main application object, and then use them from other private datasession forms later.

My example thinking goes like this:
goapp.oLookup is a bizobject with Lookup.DBF. goapp.oNotes has Notes.DBF and Notes.FPT. They both sit in the global(default) datasession. PrvForm has a private datasession with an oPrivate bizobject. oPrivate wants to use oLookup to put a LookupID in the primary table. It also wants to put a NoteID in the table the same way, but instead of just pointing to an existing record, it needs to create a new record in oNotes.

That's when I got bitten, crossing datasessions and objects in my mind and not seeing how they work together. Am I overthinking all of this, will the bizobject references required 'solve' the issue of changing datasessions?
I'm looking a little more for theory than code, because I think my test code is suffering more from theory failure.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform