There are three types of errors in programming: (a) Syntax Errors and (b) Runtime Errors (c) Logical Errors.
Syntax errors
Syntax errors, also called parsing errors, occur at interpretation
time for VBScript. For example, the following line causes a syntax error
because it is missing a closing parenthesis:
<script type="text/vbscript">
dim x,y
x = "Tutorialspoint"
y = Ucase(x
</script>
Runtime errors
Runtime errors, also called exceptions, occur during execution, after interpretation.
For example, the following line causes a runtime error because here
syntax is correct but at runtime it is trying to call fnmultiply, which
is a non-existing function:
<script type="text/vbscript">
Dim x,y
x = 10
y = 20
z = fnadd(x,y)
a = fnmultiply(x,y)
Function fnadd(x,y)
fnadd = x+y
End Function
</script>
Logical errors
Logic errors can be the most difficult type of errors to track down.
These errors are not the result of a syntax or runtime error. Instead,
they occur when you make a mistake in the logic that drives your script
and you do not get the result you expected.