May 2000
Intermediate to advanced
365 pages
9h 48m
English
Because of the procedural nature of Visual Basic, there is no way around declaration. Even if you purge your program of Option Explicit and Dim statements, the very presence of variables, routines, and controls implies the use of declaration. So a better question than "Why declare?" is "Why declare correctly?"
Like the use of good style, a coherent system of declaration adds internal stability and organization to your source code. One of the main goals of all professional programming activity is the production of a quality application, and the effective use of declaration gives you a head start, even before you type one line of logic.
While the primary beneficiary of professional coding style is the programmer, good use of declaration ...