title: Displaying text from SQLite into a message object (Loop)
body: <p>I have a database SQLite3 which stored some texts, such as dialogs between 2 characters. I also have a popup where the speeches are displayed in.</p>
  
  <p>Right now, I can extract text from the database BUT my main problem is : how to display each line in a loop function? Like a slideshow, the text has to be displayed in the same object called <code>myMessage.text</code></p>
  
  <p>Here is my code: </p>
  
  <pre><code>function displaySpeech(event)
          for i=1,4 do        
              local result = "SELECT speech FROM speeches WHERE id="..i..""    
                  for col1 in db:urows( result ) do
                      myMessage.text=col1
                      print(i)
                  end
              i=i+1
  
          end
  end
  </code></pre>
  
  <p>The function is called within a listener as shown below : </p>
  
  <pre><code>popup:addEventListener( 'tap', displaySpeech)
  </code></pre>
  
  <p>Once I tap on the popup, the function must display all the "lines" from 1 to 4, into the message.text with a delay for each one. Right now, my function (displaySpeech () ) cannot been incremented - the print(i) shows only the first line.</p>
  
  <p>I know that the subject could be "huge", so first of all : Is it the good way to do ? </p>
  
  <p>Perhaps, I'll need some <code>timer.performWithDelay()</code> functions  ?</p>