title: How do I display array elements in Lua?
body: <p>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</p>
  
  <p>this is my code:</p>
  
  <pre><code>myText = {"hello", "world", "there"}
  
  for i = 1, myText do
       local myText = display.newText( myText[i], 0, 0, native.systemFont, 35 )
  end  
  </code></pre>