Visual Basic Data Types
Data Type Suffix
Boolean None
Integer %
Long (Integer) &
Single (Floating) !
Double (Floating) #
Currency @
Date None
Object None
String $
Variant None
Operator Comparison
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
= Equal to
<> Not equal to
.The result of a comparison operation is a Boolean value (True or False).
.We will use three logical operators
Operator Operation
Not Logical not
And Logical and
Or Logical or
· The Not operator simply negates an operand.
· The And operator returns a True if both operands are True. Else, it returns a False.
· The Or operator returns a True if either of its operands is True, else it returns a False.
· Logical operators follow arithmetic operators in precedence.
Boolean None
Integer %
Long (Integer) &
Single (Floating) !
Double (Floating) #
Currency @
Date None
Object None
String $
Variant None
Operator Comparison
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
= Equal to
<> Not equal to
.The result of a comparison operation is a Boolean value (True or False).
.We will use three logical operators
Operator Operation
Not Logical not
And Logical and
Or Logical or
· The Not operator simply negates an operand.
· The And operator returns a True if both operands are True. Else, it returns a False.
· The Or operator returns a True if either of its operands is True, else it returns a False.
· Logical operators follow arithmetic operators in precedence.
Comments
Post a Comment
jeetexceltips@gmail.com