I had some extra variables on a Screen2 before, but not anymore. The screen is deleted and I want to get rid of the variables that have a “2” behind them (see attached screenshot).
The app still runs okay of course, but I don’t want my students to get confused with extra variable names that shouldn’t be there.
I got it @bramgrooten
Take a look here and give me a like, if you like it
I have the same issue. Copied a screen to cut-and-paste some blocks across apps, The variables associated with the source app get copied into my current app. When I removed the delete screen, all the variables are still there. And it cluttered up my existing app. It seemed that there is no way to delete those unused variables!!.
P/s: this is not about deleting function variables.
Yeah… except the delete variable is no longer part of the pull-down menu.
Besides, that’s definitely a kludgy way to clean up old garbage.
So this problem has been marked as solved and it looks like it has reappeared again.
My project as an example: https://x.thunkable.com/copy/e26e2d5cd1c3205d4d48f48e34bbfb95
Essentially, when I look at my variables, it appears that old variables do NOT get deleted. In fact in my pull down ‘select the variable name’ in the variable block, I have a new AND an old variable that share the same name. I believe my code is getting confused (I know I am) and sometimes looks at the old variable. There is no ‘delete’ on the pull-down that seems to have existed in the past, though that seems to be an ugly fix. Another weird feature: variables that don’t have the create block still exist and can be used.
Seems like there should be a ‘garbage collection’ function that runs every time it saves. Easy for me to say, I don’t have to write/debug/maintain the code.
This was marked as solved and explains the problem: [Solved] How can we delete function type variables no longer in use?
PS: To the developers: Thanks for all the hard work. We only complain because we see how good this product can be. Thanks again!
I have an app where I copied a screen from another app and all of the other apps variables now show in the new app. Unfortunately the other developer was a little liberal with the variables, so there are around 50 unused variables in this new app project. This makes it a headache when scrolling through and trying to search for a variable.
So, how do I upvote this? Is that just the heart?
Currently, Thunkable asks that we submit Github tickets: https://docs.thunkable.com/bugs-and-feature-requests