Delete content of variable that stored in tinydb (by replacing) without add spaces or lines

Hello, how can I delete something that was in tinydb but so that it doesn’t leave any lines when deleted? Because I had stored lists variable in tinydb and I delete the list of each quiz upon user request. But I see the result in the label as if it leaves lines. I’m worried that this will affect the device’s RAM and the application’s performance if it keeps repeating the lines infinitely. Instead of doing a method similar to clear tag (I don’t want to clear all.. i know clear all can solve this problem), maybe you can advise me to do a clear tag and then immediately put the text I want.. but i think this way also .. add lines vertically

my blocks:

Which builder are you using?
Ask in the corresponding community
Thread closed

Taifun

kodular :slightly_smiling_face: my screen brightness is set to night mode

Hi,

could you explain a bit better what you mean by “lines”?

and DRY

thanks i will dry but it’s too cold :slightly_smiling_face: :rofl:

thank you .. the reults empty atl all now

:grin:

1 Like

I just cleaned up your code by avoiding repeated blocks

lines = empty data
Empty spaces but occupying space as if there is data present but not visible - can be distinguished by the fact that the length of the screen changes and allows scrolling down, which increases steadily

Hmm, I need to understand better

How are you displaying the data?

What type of data are you passing to the label? A list?

sure a list stored in each of dynmic labels the coming from g.sheed(whole one sheet stored in one variable)

  • how do you remove data from the list? do you use remove item in list?
  • and do you delete the dynamic components when an element is removed from the list?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.