Method

Operator_AndRight


Description

Used to overload the And function, providing custom functionality.

Notes

Create an Operator_AndRight function in a class to specify the functionality of the And operator for that class. Operator_AndRight is the same as Operator And except that the Self instance is on the right.

The ordinary (left) methods are always preferred; the Right version is used only if there is no legal left version.

Important

This is not currently supported for Android.

Sample code

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

Function Operator_AndRight(lhs As MyResult) As Boolean
  Return lhs.a And Self.a
End Function

Compatibility

All project types on all supported operating systems.

See also

And operator, Operator And function.