Visual Basic 6 had the notion of a "default property" for controls and classes. Microsoft defined them this way:
"A default property is a class or structure property that your code can access without specifying it. When calling code names a class or structure but not a property, and the context allows access to a property, Visual Basic resolves the access to that class or structure's default property if one exists."
For instance, you could assign a label's caption property like this:
lbl.Caption = "SomeCaptionText"
or you could do:
lbl = "SomeCaptionText"
This was pretty handy. I've noticed that in Xojo I always have to use the longer syntax:
obj.property = something
Is there a way in Xojo to use the shorter syntax:
obj = something
If you have a class that is designed to allow "Operator_xxx" overloading, can you also provide a way to assign and retrieve a value directly to the object rather than having to specify obj.Value = x and x = obj.Value?