How can I make the VB6 compiler fail when I forget to declare a variable?
This would stop various typing errors (both keyboard and data types) and errors like this when it tries to access something unexpected.
Problems caused by not correctly declaring variables:
- Unexplained errors when using an undefined variable, but is in fact pointing to somehting else
- Variables having different values at different times, due to spelling mistakes
- Trying to access variables outside of their scope appearing to by uninitialised