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 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.
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.
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.