Is there a problem with trying to clear list?

yes new stuff. I'm beginning to doubt your knowledge.

Get your Companion up and running, so you can use the Do It facility.
Prepare three screen shots:

  • a Do It of the value (in a read TinyDB or get global variable) of the data before your clear operation
  • a Do It of the operation that you believe should have cleared that location
  • a Do It retrieving the value in that location immediately afterwards.

Then post them here, in that order.

can I post a video on here of my app working?

No, you made a specific complaint about a specific part not working.
The proof must be as specific, other wise it is not actionable.

1 Like

strangely enough when I set a text box to the data in global data right after I clear it it shows empty but it isn't because new data adds to it! I think that's how it might behave in the companion, which I've never used by the way.

You might find it instructive to read a thread discussing what may or may not be a bug in the handling of csv table conversion in an extreme exception case. Notice how the people discussing the case offer specific examples to back up their arguments.

Yeah I'm not trying to trick anyone I want it to work.

tell you what I'll upload a video tomorrow.

no
please provide a screneshot of your relevant blocks as sugested by @ABG and show us, where exactly you are using the create empty list block to clear a list
thank you

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

try to keep up, I've already done that.

Sorry thought you were talking about the emulator. What's the do it facility? I'll get the screen shots later but think a video would show it better.

See Live Development, Testing and Debugging
from
FAQ Section: Debugging

The 'do it'selection stays greyed out.

you will have to connect to the companion app for this to work

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Sorry my mistake, I was using the build apk, I like the companion though.

This is when I first run through the app, the list in global data is empty and I'm storing the data in tinydb under the tag dad,front,10 seconds.

On the second run through the list in data is showing empty and I'm using a different tag dad, front, 30 seconds. however I'm getting the 10 second data and the 30 second data. What makes me think the global data create list is not clearing is if I build the apk and turn the app off between runs it works fine.

you might have this issue

Taifun

could be but why would it work when I come out of the app and then go back in?

do you store the new list in TinyDB after modifying it?
Taifun

yeah when the data gathering starts I use the create list to clear the old data. I store the list in the same variable that is now clear and when the data gathering has finished I store it in tinydb.