Arrays of buttons

Let’s assume you wanted to make a calculator app. You would have buttons numbered 0-9. You could define ten buttons and have ten different handlers (or I guess they could all reference the same handler). But it would be easier if you could have an array of 10 butons and reference them with subscripts.

Does Corona (or LUA) support this?

Thanks!

-Todd [import]uid: 25195 topic_id: 5423 reply_id: 305423[/import]

Yes Corona definitely supports that! :slight_smile:
[import]uid: 9659 topic_id: 5423 reply_id: 18179[/import]