This Method Doesn't Return a Value

From Xojo Documentation

Error message

You used a method in an expression as though it returned a value, but it doesn't.


Examples

The user-written method myColor is not a function, so this syntax in a calling method is not correct

Dim c as Color
c=myColor //does not return a color


See Also

Function, Return, Sub statements.