Hi,I need concatenation object to array corona
tn is a OBJCT text
i need to creat 68 return object same:
–[[
tn_1.text = ta[1]
tn_2.text = ta[2]
tn_3.text = ta[3]
tn_4.text = ta[4]
tn_5.text = ta[5]
tn_6.text = ta[6]
tn_7.text = ta[7]
tn_8.text = ta[8]
tn_9.text = ta[9]
tn_10.text = ta[10]
tn_11.text = ta[11]
tn_12.text = ta[12]
tn_13.text = ta[13]
tn_14.text = ta[14]
tn_15.text = ta[15]
tn_16.text = ta[16]
tn_17.text = ta[17]
tn_18.text = ta[18]
tn_19.text = ta[19]
–]]
ITS PART OF MY PROGRAM
local tn_19 = display.newText( options_tn_19)
tn_19:setFillColor( 0, 0, 0, 1 )
tn_19:rotate( 49 )
tn_19.anchorY = 0
– Align object to top alignment axis
tn_19.y = tn_18.y
ta[j] = row.nome_tn
My program loop for don’t work propert. erro send exemple color red i need return color green object.
for b = 1, 68 do
"tn_"…b…".text="…ta[j] – i need to return this -->> tn_19.text = ta[j] etc… this don’t work
b = b + 1
end
HOW TO CONCATENATION ON NAME OF OBJECT AND INSERT VARIAVEL INTO IT. AND RETURN
“tn_”…b…".test= and return any object tn_1.txt = ta[j]. any laguage is possible, in Lua it is possible?
Tanks!
HELP!