Perform logical conjunction on two Boolean values Perform logical negation on a Boolean value The following table summarizes the available logical and bitwise operations. + Operator ( Concatenation Operators in Visual Basic) & Operator ( Concatenation Operators in Visual Basic) Join multiple strings into a single string The following table summarizes the available concatenation operations.
Operator ( Comparison Operators in Visual Basic)ĭetermine whether one value is less than anotherĭetermine whether one value is less than or equal to anotherĭetermine whether two object variables refer to the same object instanceĭetermine whether two object variables refer to different object instancesĭetermine whether an object is of a specific type = Operator ( Comparison Operators in Visual Basic) The following table summarizes the available comparison operations. ' The preceding expression evaluates to "Concatenation".
GRANDTOTAL += CHECKVALUE PLUS
' The preceding expression evaluates to 45 plus the value of x. ' The preceding expression evaluates to 9. The following are examples of expressions. The end result of an expression represents a value, which is typically of a familiar data type such as Boolean, String, or a numeric type. Operators combined with value elements form expressions, except for the assignment operator, which forms a statement. The value elements that are combined with an operator are called operands of that operator. Logical and Bitwise Operators in Visual Basic combine Boolean or numeric values and return a result of the same data type as the values. Visual Basic provides the following types of operators:Īrithmetic Operators perform familiar calculations on numeric values, including shifting their bit patterns.Ĭomparison Operators compare two expressions and return a Boolean value representing the result of the comparison.Ĭoncatenation Operators join multiple strings into a single string. The operators act on the value elements by performing calculations, comparisons, or other operations.
GRANDTOTAL += CHECKVALUE SERIES
Value elements include variables, constants, literals, properties, returns from Function and Operator procedures, and expressions.Īn expression is a series of value elements combined with operators, which yields a new value.
GRANDTOTAL += CHECKVALUE CODE
Logical and Bitwise Operators in Visual BasicĬomparison Operators Combined with Logical OperatorsĬomparison with Non-Short-Circuiting OperatorsĪn operator is a code element that performs an operation on one or more code elements that hold values. To match a character in the string expression against a list of characters or no characterĭifferences Between the Two Concatenation Operators To match a character in the string expression against a range of characters To match a character in the string expression against a list of characters To match a character in the string expression against a wildcard character To match a character in the string expression against a specific character How to: Test Whether Two Objects Are the Same Common Tasks Performed with Visual Basic Operators