Optional parameters in property Getters/Setters?

Is there any way to include optional parameters (or even multiple parameters) in property getter/setters? In VB6 I could define getter/setter methods with multiple parameters (which would have to match exactly) and the last one in the list was always the property value. Is there an equivalent in Xojo?

i.e.:

Public Property Get Data(ByRef Index As Long, Optional IncludeInactive As Boolean = False) As Double
'Getter code goes here…
End Property

Public Property Let Data(ByRef Index As Long, Optional IncludeInactive As Boolean = False, vdata As Double)
'Setter code goes here…
End Property

Cheers.

-bill k

No, this is not possible. Write two methods, a setter and a getter method with the same name. The setter will be in the form:

Public Sub Data(..., ..., Assigns vData As Double)   // note the "Assigns" keyword

You could also look at Operator_Subscript, depending on what the semantics of your getter/setter pair is. Here also the setter can use the Assigns keyword for the last parameter.