Operator AndRight

From Xojo Documentation

Method

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.

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

See Also

And operator, Operator_And function.