Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business classes
Message
 
To
30/05/2001 12:05:09
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00512722
Message ID:
00512998
Views:
12
Christian,

You could use views as the data source that is controlled simply by a data object.

all the data object would do is to open and update the views needed for the forms that are being opened. This is the approach i use and seems to work for all situations i have come across so far. even if going client-server just replace the local with remote views. i usually have a table which holds the name of the local and remote views and a third column which is the alias for the view, which means all that is needed is a flag to say if the application is local or remote or a combination of the two.

The business objects should provide the business logic, ie validation, how objects are displayed etc. the data object i create sits below the business object and passes the view name to the business object, from there the business object controls what information is kept where. you can control source the objects on the form because they will be controlsourced to views, it does not matter if they are ADO, SQL-server or oracle.

I hope this helps
Wayne Williams
Developer VFP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform