Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interaction between biz obj - design question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Interaction between biz obj - design question
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00990572
Message ID:
00990572
Vues:
53
Hi everybody,

For batch process which is going to be run at night I'm instantiating a biz obj in the program. I found, that I need to use some logic from another biz object. I may want to use more biz objects.

So my question is how to approach this the best way:

1. Put all biz objects into container and then I want to use some methods or properties from other object in the first object use:


this.parent.CalendarObject.somemethod()


2. Create an object reference in my main object. In its PostInitHook do something like

this.NewObject('CalObj',"CalendarObject")


What is the preferable method?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform