variable type

Is there a type of variable that retains its value even after the program is closed and opened again except register variables
There's no such thing, and register variables don't work that way.
The only way to do it is by writing to storage.
You have to store the value of the value somewhere when you close the program and then read it when the program starts again
You can store the value to a ini file or XML file.
Topic archived. No new replies allowed.