Explicit Variable Declaration

■ Explicit variable declaration speeds up the execution of your procedure. Since Visual Basic knows the data type, it reserves only as much memory as is absolutely necessary to store the data.

■ Explicit variable declaration makes your code easier to read and understand because all the variables are listed at the very beginning of the procedure.

■ Explicit variable declaration helps prevent errors caused by misspelling a variable name. Visual Basic automatically corrects the variable name based on the spelling used in the variable declaration.

0 0

Post a comment