Guaranteed Hits to your web site!












Learn Visual Basic 6.0


2. The Visual Basic Language


Visual Basic Operators

  1. The simplest operators carry out arithmetic operations. These operators in their order of precedence are:

    Operator Operation
    ^ Exponentiation
    * / Multiplication and division
    \ Integer division (truncates)
    Mod Modulus
    + - Addition and subutraction

  2. Parentheses around expressions can change precedence.

  3. To concatentate two strings, use the & symbol or the + symbol:
  4. There are six comparison operators in Visual Basic:

    Operator Comparison
    > Greater than
    < Less than
    >= Greater than or equal to
    <= Less than or equal to
    = Equal to
    < > Not equal to

  5. The result of a comparison operation is a Boolean value (True or False).

  6. We will use three logical operators

    Operator Operation
    Not Logical not
    And Logical and
    Or Logical or

  7. The Not operator simply negates an operand.

  8. The And operator returns a True if both operands are True. Else, it returns a False.

  9. The Or operator returns a True if either of its operands is True, else it returns a False.

  10. Logical operators follow arithmetic operators in precedence.


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1