Re: Phix object arrays
- Posted by irv Feb 03, 2021
- 806 views
petelomax said...
Unfortunately it's just not smart enough to figure out that buttons[1] is a Button instance, not entirely dissimilar to how you can code
Button b = new()
but you had to say
buttons[i] = new(Button)
rather than
buttons[i] = new()
I was afraid that might be the case. Let me think about the best way to work around this. In EuGTK, it is very convenient to be able to make calls like this by name:
set("Button1.label","Foo")
Perhaps I can do something similar.