Saving data that you do not want wiped - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Saving data that you do not want wiped (/thread-7726.html) |
Saving data that you do not want wiped - Han - 02-05-2017 11:35 PM Nothing out of the ordinary here; just sharing a snippet of code on how to use AFiles() to save options that you don't want reset even if you need to modify your source on (on-calc). This only makes sense in an app program. Each time an option is changed, save it with ssSaveOptions(). Use ssLoadOptions() to restore the data. This can be placed inside an initializing program ssInit() that all routines would call. PHP Code: ssUserFile:="filename.dat"; EDIT: For non-app programs, you can replace AFiles with HVars (for creating Home variables). RE: Saving data that you do not want wiped - cyrille de brébisson - 02-06-2017 06:25 AM Hello, Of course, you could also use App Variables (AVars) for this, then the save/load would be automatic... Cyrille |