Saving data that you do not want wiped
|
02-05-2017, 11:35 PM
(This post was last modified: 02-06-2017 01:19 AM by Han.)
Post: #1
|
|||
|
|||
Saving data that you do not want wiped
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). Graph 3D | QPI | SolveSys |
|||
02-06-2017, 06:25 AM
Post: #2
|
|||
|
|||
RE: Saving data that you do not want wiped
Hello,
Of course, you could also use App Variables (AVars) for this, then the save/load would be automatic... Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)