I'm getting following error:
Don't know what to make of it...Error: Missing a required parameter.
Specifically: p3
Line#
---> 012: x[p1] := new x.base
I've tried
Code: Select all
MsgBox x[1,2]
Code: Select all
MsgBox x[1,2,3,4]
Can anyone please help?
Code: Select all
x := {base: {addr: Func("x_Addr"), __Set: Func("x_Setter")}}
; Assign value, implicitly calling x_Setter to create sub-objects.
x[1,2,3] := "..."
; Retrieve value and call example method.
MsgBox x[1,2,3] "`n" x.addr() "`n" x[1].addr() "`n" x[1,2].addr()
x_Setter(x, p1, p2, p3) {
x[p1] := new x.base
}
x_Addr(x) {
return &x
}