hi again ;
local ui = require "ui"
add={"a", "k", "q", "c", "y", "y", "k", "q", "c", "y"}
local win = ui.Window("Checkbox.text sample", 1000, 550)
local buton=ui.Button(win,"",50,30)
local go = 0
for i=1, #add do
go = go+30
local checkbox_.."i" = ui.Checkbox(win, add[i], 130, go)
end
win:show()
repeat
ui.update()
until not win.visible
I need a loop like this. What can I use instead of "checkbox.."i" "?
I guess this happens because checkbox.."i" is a type of combobox and it is not recognized as a string. π