*

Aggregation Mini-Lecture: Day 2

...Cool!  I'll re-do it to use a class module instead!  It will look exactly the same, but it's better code-wise (because that's what my VB instructor said...)

Here's the changed form code.  And, here's the new class module, clsPetCare.  Instead of dealing with the advice in the form, the advice is now a property of the class.  There is also an event for when the advice is completed! (Code links open in new windows.)

An endeavor your VB instructor would be proud of.  You package it up for the vet and merrily head over there.  A surprise awaits you, though! By popular demand, the vet's practice has expanded to include reptiles and possibly rodents.  And the types of care need to include "Veterinary visits".  Wow.  Well, you can always just go in and change the code, right?  Of course, you'll have to change the form, too... Gee, this is looking like it's taking on a life of its own.  There's got to be a better way...

Download the Code*



Internet Content Rating Association

Alrak's Course Resources ©2002-2007 Karla Carter. All rights reserved. This material (including, but not limited to, Mini-lectures and Challenge Labs) may not be reproduced, displayed, modified or distributed without the express prior written permission of the copyright holder. For permission, contact Karla.