gaqdirector.blogg.se

Visual basic net operators
Visual basic net operators












visual basic net operators

Subtract AND assignment operator, It subtracts right operand from the left operand and assigns the result to left operand Simple assignment operator, Assigns values from right side operands to left side operandĬ = A + B will assign value of A + B into CĪdd AND assignment operator, It adds right operand to the left operand and assigns the result to left operand There are following assignment operators supported by VB.Net − The left operands value is moved right by the number of bits specified by the right operand. Assume variable A holds 10 and variable B holds 20, then −Ĭhecks if the values of two operands are equal or not if yes, then condition becomes true.Ĭhecks if the values of two operands are equal or not if values are not equal, then condition becomes true.Ĭhecks if the value of left operand is greater than the value of right operand if yes, then condition becomes true.Ĭhecks if the value of left operand is greater than or equal to the value of right operand if yes, then condition becomes true.īinary Right Shift Operator. Modulus Operator and remainder of after an integer divisionįollowing table shows all the comparison operators supported by VB.Net. Raises one operand to the power of anotherĭivides one operand by another and returns a floating point resultĭivides one operand by another and returns an integer result Assume variable A holds 2 and variable B holds 7, then − Arithmetic Operatorsįollowing table shows all the arithmetic operators supported by VB.Net. This tutorial will explain the most commonly used operators.

visual basic net operators

VB.Net is rich in built-in operators and provides following types of commonly used operators − An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.














Visual basic net operators