>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.