I can't find the original thread, but I remember talking about getting misleading (or just unhelpful) error messages when compiling. Erel had asked for an example and I ran into one today.
I had commented out a sub but I accidentally left the End Sub statement in. When I compiled, I got the error:
This one was really easy to spot, but there have been other times where it was a bit more difficult to find the problem.
In this case, I would probably expect something along the lines of "End Sub without Sub declaration". I imagine it would be a huge task to cover for all types of mistakes, but......
I had commented out a sub but I accidentally left the End Sub statement in. When I compiled, I got the error:
Compiling code. Error
Error parsing program.
Error description: Stack empty.
Occurred on line: 676
End Sub
This one was really easy to spot, but there have been other times where it was a bit more difficult to find the problem.
In this case, I would probably expect something along the lines of "End Sub without Sub declaration". I imagine it would be a huge task to cover for all types of mistakes, but......