Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects in a middle-tier environment
Message
From
09/01/2003 12:05:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Objects in a middle-tier environment
Miscellaneous
Thread ID:
00739857
Message ID:
00739857
Views:
76
Hi

I have a complex application that I'm working on splitting up a bit, I'm a little way through but wanted to ask a question. My middle-tier has around 25 data-objects so far, all linked to a main application object.

Now, what I want to know is if what I'm doing, is a good idea. Rather than create new instances of data-objects on the forms, I call a method in the (middle-tier) application object that returns a reference to the data-object, this way, if the object is updated by one form, it will always be reflected because it is a continuously running single instance.

Is this good practice? Or is it better to create objects freshly?

Thanks in advance
Kev
Next
Reply
Map
View

Click here to load this message in the networking platform