@jwcolby54
Can we take a break from the book for a short while please?
I am trying to implement what I have read into the attached DB, which is from another member here.
I believe I fixed their issue with just a common routine, but can see the potential for a class for the certain command buttons.
I do not want you to write the code, but 'nudge' me in the correct direction.
The buttons are called AlphaTab
xx and I have tried to create a class for them.
However when trying to compile, I am getting error below.
View attachment 120004
on Dim WithEvents mlClsAlphaCmd As ClsAlphaCmd
I am trying to get all the buttons down the lefthand of the form to be a class with just the common code for the click in the class, and then be able to remove all their events from the form.
In the class as well, I also wish to set the caption from the class and so believe I need to pass in the command button and an integer to indicate which caption from the Const cstralphabet.
So would be able to tell me what I am missing please.
Thank you.