Friday, December 19, 2014

Operators in VB.NET

  No comments    
categories: 
Logical Operators

Logical Operators compare Boolean expressions and return a Boolean result.
the And, Or, and Not.... operators are binary because they take
two operands, while the Not operator is unary because it takes a single operand.
some of these operators can also perform bit-wise logical operators on integral values.

you can use logical operators to work logical values (true and false).

Logical Operators

Compound Operators

Compound Operators execute some operation and set an original value to the result of the operation.
For example, if a variable @x equals 35, then @x+=2 takes the original value of @x, and 2 and sets @x to that new value (37)

Compound Oerators can be combined together

Compound Operators

String concatenation operator (&)
In VB.NET & sign is used to concatenate strings or text.

Example:
Dim yourname as String
yourname="Theara"&"Mao"

0 comments:

Post a Comment