From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Used to overload the * operator, providing custom functionality.
Create an Operator_MultiplyRight function in a class to specify the functionality of the * operator for that class.
In the function, the Self instance is the operand on the right and the other operand is passed as a parameter.
The ordinary methods are always preferred; the Right version is used only if there is no legal left version.
Var a, b As Integer
a = Self.x + Self.y
b = lhs.x + lhs.y
Return b * a