Updating text message on screen

I have a simple text message on my app that I created using display.newtext(). As I am looping through a function the desired functionality is to updates the value of the text message on the screen. Think of it like a count down timer.  

I am updating the text message using:

updatetxt.text =  currentValue

The problem is that it just keep writing the updated value on top of the old value on the screen versus the desired effect which is to replace the value on the screen. 

Is there a way to replace the old text message value with a new value so it doesn’t keep writing on top of itself? Am I using the wrong function or approach?

Thanks for your help

Always best to copy up all the relative code.  Sounds like you are instantiating a new display.newText in your loop, instead of updating a display.newText object you created outside of the loop.

Ultimately yes, updating the .text attribute is the right way to go.

Always best to copy up all the relative code.  Sounds like you are instantiating a new display.newText in your loop, instead of updating a display.newText object you created outside of the loop.

Ultimately yes, updating the .text attribute is the right way to go.