Delete letter on Arduino TFT Display

Hello,

I use the Arduino TFT LCD Screen with an Nano.
My code write on display with tft library. Like this:

Voltage: 12.0

With two buttons I want to change the "12.0" to upper or lower value but how can I delete a letter? Is the only way to draw a rectangle?

Thanks for help.....

Robi

Yes, rub out the previous text by drawing a filled rectangle with the appropriate background colour.

Or use setTextColor(foreground, background)
which will mean you can rub out by drawing a " " i.e. space character.

David.