I’ve started converting a lot of duplicate timers on windows to global timers use AddHandler to set the Action event. However, if I use what I consider consistent style in the AddHandler line, it causes a Syntax error.
It took me quite a bit of sleuthing to recognize that the parenthesis were the problem and not something in my code. I understand parens being optional, but the cause of a syntax error??? :S
Neither could I. The only reason I found the solution was by typing in the example verbatim and then realizing the difference between the example c ode and my code … not a productive way to spend a hectic morning.