Make your own free website on Tripod.com
Write Your First Visual Basic Program

Lesson 2
Tutorials - Page 1 - Page 2 - Page 3 - Page 4 - Page 5 - Page 6 - Page 7 - Page 8 - Page 9 - Page 10 - Page 11 - Page 12 - Page 13

More Complicated Expressions
You can use the following operators in expressions:

+ Plus
- Minus
* Multiply
/ Division
( Openning parenthesis
) Closing parenthesis
^ Power


For example, this is a valid expression:
(Blah + 5) * MySecondVariable - (4 + 10 / Blah)

The order of the operators are like in math:
First "(" and ")" , then "^", then "*" and "/", and at last "+" and "-"

For example:
2 + 3 * 4   is equal to 14
(2 + 3) * 4   is equal to 20

Back  Forward