I'm having an issue displaying the elements of an array in Lua programming language. Basically, i created an array with 3 elements, and i'm trying to display its contents in a for loop on the corona sdk emulator. What happens is that if i display the individual array elements (without the loop), they display fine; as soon as I put them in a for loop, nothing shows up on the screen anymore
this is my code:
myText = {"hello", "world", "there"}
for i = 1, myText do
local myText = display.newText( myText[i], 0, 0, native.systemFont, 35 )
end
for i = 1, #myText do
? – Braynard