ERRORS IN VB.NET
There are three types of error in vb.net such as:
- SYNTAX ERROR = Syntax error are those error , that appear ,we write code .Vb.net check the code editor windows and alerts if we make a mistake such as misspelling.
- RUNTIME ERROR= Runtime errors are those error ,that appear only after you compile and run the code .These error involve the code that may appear to be correct ,it has no syntax error but that will not execute.Runtime error are a lot difficult in design time error to track down.As their name suggests ,these error occur when the programee running.Runtime error are the ones that crash your programme.A simple way to crash a programme is to divided by 0.Change the code for your button of this,and try it out:
Dim a as integerDim b as integer
a=10
b=0
textbox1.text=clnt(a / b)
The clnt() part means converts to an integer
3. LOGIC ERRORS= Logic error are those error ,that appear once the application is in use .They are most often unwanted or unexpected result in response to the action.These can be thought of as coding error.They can be quite trickly to track down ,and have you tearing your hair out with frustration. code such as ::
Dim a as integer
Dim b as integer
Dim ans as integer
a=10
b=3
ans =a*b
textbox1.text= ans
0 comments:
Post a Comment