Board index » delphi » Contents of an oebjct

Contents of an oebjct


2003-11-24 11:33:08 AM
delphi5
 Hi All,
I was wondering what contents would be considered good form inside an
object?
Would it be considered good form to hold (say) an image that is
representative of the object within the object?
I ask this question as it seems to step over the line of "presentation"
and "business" relationships.
Thanks.
--- posted by geoForum on delphi.newswhat.com
 
 

Re:Contents of an oebjct

Rob writes:
Quote

I was wondering what contents would be considered good form inside an
object?

Would it be considered good form to hold (say) an image that is
representative of the object within the object?

I ask this question as it seems to step over the line of
"presentation" and "business" relationships.
Is the image in question actual data? E.g. if the object is TProduct, is the
image of the product, stored along with other product data and updateable
the same way? If so then it belongs with the object as much as any other
data.
If the image is *only* for presentation, e.g. an image placed on a button
used to get to the Products form, then it does *not* belong in the object,
it belongs solely in the GUI layer.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson