Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's a component.
Message
De
02/11/1999 11:45:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00284554
Message ID:
00285504
Vues:
21
>>No, COM servers can have UI. VFP DLL COM Servers don't support UI, but an EXE can have UI. You can call Excel, Word, Visio, and others as COM servers and all can have a UI.
>
>Ok, my bad, I was thinking business objects when I said COM server.
>
>Would we say "Components shouldn't cross tier boundries.", in a multi-tier application?
>
>In other words a UI tier customer class (data entry form) would not include the business tier customer class. It would just be able to commumicate with that component.

Tier boundaries are sometimes fuzzy. Lets say you have an edit mask on a field that formats a phone number. You could have a business rule that says "Anytime you have a phone number, it is formatted as ###-###-####." To further complicate things, the mask can be stored in the data dictionary (DBC for VFP data) and you can pull this out at runtime. Which tier does this belong in? You could argue for any of the three. My personal feeling is that it belongs in the UI since it only affects how to see the data.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform