Changes to Operators

Operators have undergone some changes in Visual Basic .NET, too. This section describes some changes to existing operators and the introduction of a few new operators in Visual Basic .NET.

Equivalence and Implication Operators

The equivalence operator Eqv and the implication operator Imp are not supported in Visual Basic .NET. Where you would have used Eqv operations in VB6, replace the Eqv operator with the equals operator =. Where implication operations made sense in VB6, substitute Imp operations with Not and Or combined.

Implication is equivalent to (Not A) Or B. That is, negate proposition A and Or the result with proposition B.

And, Or, Xor, and Not

Early Beta builds of Visual Basic .NET had removed the bitwise behavior ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.