Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beginner - Business object
Message
From
29/01/2002 12:07:17
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
29/01/2002 08:38:30
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00612101
Message ID:
00612238
Views:
26
>Hi,
>I am beginner of 3-tier development. I am trying to develop my own business class base on what i have read from web and magazine.
>
>I am using vfp native data in my deveopment and run under LAN.
>I have some question here:
>
>1. In my form, I may need to display some records in grid or combo box for user selection. Since, I UI layer should not access the data directly, should my business object responsible to to this? Convert the result from cursor to ADO or XML, then convert it back?
>
>Thank you

Hi John,

The business object should be responsible for accessing the data. Whether or not you convert cursors to ADO/XML is debatable. A common strategy is a dual-purpose data object, which can either provide a VFP cursor if you are using the object locally, or return ADO/XML if you are accessing the object over COM or as a Web Service. For straight VFP-to-VFP conversions, XML is probably a better transport than ADO, since there are problems with VFP/ADO conversions.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Reply
Map
View

Click here to load this message in the networking platform