I've been an Access VBA developer for over a decade, but I'm working on a project and trying to utilize some class modules. You know, just for kicks. However, I'm having a hard time finding the value of incorporating a class for a specific idea, and would like some folks to give me feedback, as to the below.
I've created a functional Monopoly game that allows the fundamental aspects of game play up to landing on a property. I had this handled with modules and functions, but envisioned that creating the methods of the property into a class would be more streamlined. However, it seems that I would have to create the property class, assign all appropriate values to it, then open the 'Property' form and write the values back into the form. Now I'm thinking it was a bit more streamlined just opening the form and writing the particulars into it and skipping the 'middle-man' class.
This is leading me to wonder if there is any benefit from using this class here, or anywhere for that matter.
I think I'm just looking for some concrete feedback about my above idea, and maybe some discussion about correct circumstances where a class is a valid tool for efficiency.
Thanks for any feedback. ~R
I've created a functional Monopoly game that allows the fundamental aspects of game play up to landing on a property. I had this handled with modules and functions, but envisioned that creating the methods of the property into a class would be more streamlined. However, it seems that I would have to create the property class, assign all appropriate values to it, then open the 'Property' form and write the values back into the form. Now I'm thinking it was a bit more streamlined just opening the form and writing the particulars into it and skipping the 'middle-man' class.
This is leading me to wonder if there is any benefit from using this class here, or anywhere for that matter.
I think I'm just looking for some concrete feedback about my above idea, and maybe some discussion about correct circumstances where a class is a valid tool for efficiency.
Thanks for any feedback. ~R