Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizObject, DataObject, UI and what else?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00302030
Message ID:
00302563
Views:
32
>Hi All:
>
>I've been trying to figure out what belongs where.
>Would appreciate anyone you assistance.
>
>BizObject, DataObject, UI(object?) ... are these? Classes(VCX)?
>Can they be COM Objects (DCOM in the case of DataObject)?
>
>Where would something like this go?
>lcFirstName = PROPER(cFirstname)... BizObject?
>lnLineTotal = nPrice * nQuantity .. BizObject?
>If there aren't that many of them, do I just leave it in the form?
>
>Do I keep something like this in the Form, or should it be in some kind of an object/class?
>THISFORM.oRS.FIELDS("FirstName").Value = lcFirstName ... DataObject?
>
>I'm having trouble deciding what goes where. Please give me ahint.
>
>Thank you,
>
>Mal

Forms are for holding visual things as well as bringing in the bizobjects.

Customer data is on a customer form. But the credit check to see if they are within their limit is in the bizobject. That bizobject can be used on an order entry form where if that was coded into a form it woudl be much more work to utilize it separate forms.

>lcFirstName = PROPER(cFirstname)... BizObject?

No, not a bizobject, maybe in a base textbox class for your project. Watch out for those Scottish, and Irish names in Proper() function hell. Mac or Mc will look like crap after proper() runs.

__Stephen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform