If I had hundreds of variables and dozens of multi-dimensional arrays, I'd still avoid CLEAR to rerun the program. Instead, I'd:
SHELL "program_name.EXE"
SYSTEM
End the existing instance and run a new one. Never any worries then about what's freed, reset, cleared, or holding residual values.
SHELL "program_name.EXE"
SYSTEM
End the existing instance and run a new one. Never any worries then about what's freed, reset, cleared, or holding residual values.