Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an Object Around
Message
De
04/09/2008 20:40:42
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Passing an Object Around
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345022
Message ID:
01345022
Vues:
47
I need to go down about 4 or 5 procedures to get some information that is then needed back at the first call. I was fine when it was just one value as I just returned it as I came back up the stack. Now I need more than one value and started to code it using an object. I'm just having trouble knowing whether I'm doing it the right way. Also, where do I kill/release each object in this scenario, and does it matter that I name the object the same for all calls?
oObject = Proc1()

Proc1
oObject = Proc2()
RETURN oObject

Proc2
oObject = Proc3()
RETURN oObject
etc...

UPDATE: I just had a thought. Does it make more sense to have a _SCREEN object (or something like that) and just change the values as needed?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform