# setLabel does not erase previous label

**URL:** <https://forum.electra.one/t/setlabel-does-not-erase-previous-label/1948>\
**Category:** Bug reports\
**Created:** [March 15, 2023, 10:07pm UTC](https://forum.electra.one/t/setlabel-does-not-erase-previous-label/1948 "2023-03-15T22:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/jhh/32/951_2.png) [@jhh](https://forum.electra.one/u/jhh)\
**Post date:** [March 15, 2023, 10:07pm UTC](https://forum.electra.one/t/setlabel-does-not-erase-previous-label/1948/1 "2023-03-15T22:07:00Z")

</div>

@Martin when executing `group:setLabel("new")` the new string is written on top of the old label string (i.e. the old string is not first removed); only an explicit call to `group:setVisible(true)` draws the new label correctly. This is in firmware 3.1.4

---

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [March 16, 2023, 8:53am UTC](https://forum.electra.one/t/setlabel-does-not-erase-previous-label/1948/2 "2023-03-16T08:53:22Z")

</div>

A side effect of this is that you can create a floating label to help identify things.

Try this - if you create a group that is 2 columns wide and move it (using setSlot()) to the same location as a single column wide label, you will now see the moved label (group) floating between the 2 controls.

Not sure how generally useful this is 😀 but it is something.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [March 28, 2023, 7:14pm UTC](https://forum.electra.one/t/setlabel-does-not-erase-previous-label/1948/3 "2023-03-28T19:14:52Z")

</div>

I had a bit of hard time to work on the E1 mk1 firmware lately. I do believe, however, that this is fixed 🙂 I tested that on the latest 3.1.5 beta release and the text gets painted just fine when I call `group:setLabel()`. Pls ping me, if you still have that problem.
