I’m imagining what the new code might look like based on the last message I wrote on this topic.
Here is the URL to the previous article: https://www.accessjumpstart.com/custom-tags-for-form-controls-the-case-to-use-them-for/
So given this kind of syntax:
What would that look like in the existing code I’d want to update? Is it really buying me anything? Let’s see the old code first:
And now I will change it to use the CustomCtlTags object to see what this simplifies.
Frankly, it allowed me to remove about 4 lines of processing code, and would also allow me to remove the Enum definition which is another 6 lines. But then I’m adding 2 lines to Dim the class and instantiate it.
So overall, I’ve shortened the code by 8 or so lines and removed some comments. I think maybe it’s a little more readable, but I think I would desire a lot more simplicity out of it. I’ll revisit this later and see what I can come up with in terms of more simplified syntax.