Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3-tier programming, Codebook, and business classes
Message
From
13/03/1998 09:40:41
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00083772
Message ID:
00084429
Views:
40
>>>>Do you not allozw your buziness class to share (give access to) cursors with clases of other tiers?
>>>>
>>>>Marc
>>>Marc,
>>>
>>>No I don't, because I want a true N-Tier design. Meaning that the business object should be usable by VFP, Excel, VB, Delphi, C++, etc. When ADO is better integrated with VFP then I would consider using that to pass cursors around.
>>
>> So then what (for instance) would you set your ControlSource to in a control?
>>
>>-Paul
>Paul,
>
>In using a business object I don't set the control source. I have a container that holds the controls. The container has a refreshData method that I call. The RefrehsData mehtod gets data from the business object and assigns it to the value of the controls. There is also a writedata method that does the opposite, sends data to teh business object. Only the business object retrieves or writes any data form or to the backend. This is what allows that object to be used universally with other front end applications.

Jim, I greatly appreciate this reply. It confirms that business objects use unbound controls (we had many UT discussions about bound and unbound approaches).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform