Beijer Electronics (formerly QSI Corporation)

Basic Perstistent Storage example
Page 1 of 1

Author:  congo181 [ Thu Mar 13, 2014 9:22 am ]
Post subject:  Basic Perstistent Storage example

I just don't seem to be able to get my persistent storage to work.
Does anyone have a basic example of this? I'm just using it for user defined variables like volume which get saved when changed and then auto-reloaded.
I keep getting a crash when I save the data.
storage: Error saving property: "{var name}.<none specified>" (#0)
where {var name] is always the last var in my SaveList "..."


Author:  xkimi [ Wed Apr 16, 2014 7:08 am ]
Post subject:  Re: Basic Perstistent Storage example

To save a property of a certain object, directly use the property name such as "spinner.value"

To save a global variable such as gfNumber, use "default.gfNumber"

So the code looks like this

init savelist := "spinner.value;default.gfNumber"
init autosaveinterval := 1

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group