I want to define a variable whose value can survives a reset. Is it possible?
You should open a new question, it has nothing to do with your original question.