Errors List in Visual Basic 2010 Express Edition

Errors are a very big part of any programming language. They are important to get familiar with and know how to solve them in the code.

Basically; all the programming languages deal with 3 different types of errors.
Syntax errors are when you do not follow the syntax or the grammar of the language.
Run Time errors are the errors that keep you from running your code. They are not detected by the compiler of the IDE.
Logical errors are the most challenging type or errors in the code. Faults in the logic of the program you type will result in logical errors. For example; if you make a calculator and instead of the button to add numbers you code to divide them. The code will run successfully, but when you try to add two numbers it will divide them.

See Also: [button link=”” size=”default” icon=”fa-signal” side=”left” target=”” color=”b72555″ textcolor=”ffffff”]Errors In Programming Languages[/button]

Three types of errors in Visual Basic

Can be as below;

Syntax Error: when you do not follow the syntax of the language.

Syntax Errors

Run-time Error: This is a bit difficult to demonstrate now. Its example can be when you divide a number by zero in your code or so on.

Run-time Errors

Logical Error: In a basic program, it is when you want the program to do something for you, but the code gives you as output something else which you even do not expect to get. Like; you want your code to print the message “Hello CodeJow Viewers!” but it will print the message “Good Bye Folks!”.

Logical Errors

See Also: [button link=”” size=”default” icon=”fa-check” side=”left” target=”” color=”b7522e” textcolor=”ffffff”]Comments & White Spaces in Visual Basic[/button]

Errors List in Visual Basic 2010

Errors list is located at the bottom part of Visual Basic 2010 Windows. It is composed of three category.

Errors: It will point out the errors which are detected by the compiler from your code. It will point out the name of the project, the line number and so on.


Warnings: This part will warn you from some possible error(s) that might occur in your code. Like; when you declare a variable in your code and do not assign it or use it in your code, it will warn you until you do not assign or use it. It is always good to take the warnings of your code serious and pay close attention to them.


Messages: This part is a list of possible suggestions from the compilers and IDEs side to you to create an error and fault free program.

Feel free to ask your questions and give us your valuable suggestions.


Leave a Reply

%d bloggers like this: