Types of Errors
Syntax Errors
Syntax errors are those that appear while you write code. Visual Basic checks your code as you type it in the Code Editor window and alerts you if you make a mistake, such as misspelling a word or using a language element improperly. Syntax errors are the most common type of errors. You can fix them easily in the coding environment as soon as they occur.
Note
|
The Option
Explicit statement is one means of avoiding syntax errors. It forces you
to declare, in advance, all the variables to be used in the application.
Therefore, when those variables are used in the code, any typographic errors
are caught immediately and can be fixed. |
No comments:
Post a Comment