J
JimS
I'm reading Cooper and Tucker's Expert Access 2007 Programming. My eyes have
been opened about the use of Classes in A2007. I created one for
authentication and am about to implement it. It's a good application for the
concept, I think.
My question is one of philosophy...how do you identify those "things" that
are good candidates to implement as classes. Obviously, you can go too far.
If you instantiate a class every time you need some rows from a table, the
overhead would seem to way outweigh the simplicity. Also, is it better to
instantiate the class in a "Public" object variable at application startup
(as I do for my authenticate class, since it is used at least once in every
on_open event for each form...) or instantiate it when needed, ignoring the
startup overhead? Strategies for deciding?
Thanks guys.
been opened about the use of Classes in A2007. I created one for
authentication and am about to implement it. It's a good application for the
concept, I think.
My question is one of philosophy...how do you identify those "things" that
are good candidates to implement as classes. Obviously, you can go too far.
If you instantiate a class every time you need some rows from a table, the
overhead would seem to way outweigh the simplicity. Also, is it better to
instantiate the class in a "Public" object variable at application startup
(as I do for my authenticate class, since it is used at least once in every
on_open event for each form...) or instantiate it when needed, ignoring the
startup overhead? Strategies for deciding?
Thanks guys.