Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Objects - calling code in Procedure files?
Message
From
13/08/2009 14:21:55
 
 
To
13/08/2009 14:07:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01417961
Message ID:
01417969
Views:
65
>As an exercise, fire up the code references, and see where exactly are you calling the procedure. If it's in more places that you imagined, or a surprise in any way, try to see whether these places would otherwise benefit from having an instance of the BO at hand.
>
>Besides, if the BO is lightweight (i.e. instantiating it many times is cheap), you can replace any "getjobitems(" with "oBo=create('myBizObj')+chr(13)+chr(9)+"oBo.GetJobItems(" and then you could just forget the function and use the BO everywhere.


So, you advocate that, for methods that are truly unique to each BO, the most ideal and pure BO architecture is to have the code in the BO, and do not allow a BO method to call an outside procedure to pass of the work?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform