Operator is not overloadable
Only certain operators are eligible for overloading. The following table lists the operators you can define.
Type |
Operators |
---|---|
Unary |
+, -, IsFalse, IsTrue, Not |
Binary |
+, -, *, /, \, &, ^, >>, <<, =, <>, >, >=, <, <=, And, Like, Mod, Or, Xor |
Conversion (unary) |
CType |
Notice that the = operator in the binary list is the comparison operator, not the assignment operator.
Error ID: BC33002
To correct this error
Select an operator from the set of overloadable operators.
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 a Conversion Operator