A. Operator Precedence Chart

Operators are shown in decreasing order of precedence from top to bottom with each level of precedence separated by a horizontal line. Visual Basic operators associate from left to right.

Figure A.1. Operator precedence chart.
OperatorType
TypeOftype comparison
^exponentiation
+unary plus
-unary minus
*multiplication
/division
\integer division
Modmodulus
+addition
-subtraction
&concatenation
<<bitwise left shift
>>bitwise right shift
=relational is equal to
<>relational is not equal to
<relational less than
<=relational less than or equal to
>relational greater than
>=relational greater than or equal to
Likepattern matching
Isreference comparison
Notlogical negation
Andlogical AND without short-circuit evaluation
AndAlsological AND with ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.