Method

Operator_Not


Description

Used to overload the Not operator, providing custom functionality.

Notes

Create an Operator_Not function in a class to specify the functionality of the Not operator for that class. Whenever you use the Not operator in your code to operate on two instances of the class, your Operator_Not function will be called.

In the function, the Self instance is the only operand. No parameters are passed.

Important

This is not currently supported for Android.

Sample code

Suppose you define a class MyResult with the property a as Boolean. Operator_Not is defined on the class as:

Function Operator_Not As Boolean
  Return Not Self.a
End Function

Compatibility

All project types on all supported operating systems.

See also

Not operator.