Information générale
Catégorie:
Programmation Orientée Object
Stephen:
Thanks for your help, as always.
Guess I should get some book on this eh?
Mahalo,
Mal
P.S. Yes, I'll watch out for those McNakamuras and O'Tokunagas type customers.
>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement