Operator declaration must be one of: +,-,*,\,/,^, &, Like, Mod, And, Or, Xor, Not, <<, >>, =, <>, <, <=, >, >=, CType, IsTrue, IsFalse

You can declare only an operator that is eligible for overloading. The following table lists the operators you can declare.

Type

Operators

Unary

+, -, IsFalse, IsTrue, Not

Binary

+, -, *, /, \, &, ^, >>, <<, =, <>, >, >=, <, <=, And, Like, Mod, Or, Xor

Conversion (unary)

CType

Note that the = operator in the binary list is the comparison operator, not the assignment operator.

Error ID: BC33000

To correct this error

  1. Select an operator from the set of overloadable operators.

  2. If you need the functionality of overloading an operator that you cannot overload directly, create a Function procedure that takes the appropriate parameters and returns the appropriate value.

See Also

Tasks

How to: Define an Operator

How to: Define a Conversion Operator

Concepts

Operator Procedures

Reference

Operator Statement

Function Statement (Visual Basic)