Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 8:56 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 13, 2014 9:22 am 
Offline

Joined: Fri Jul 13, 2012 10:16 am
Posts: 6
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 "..."

Cheers,
Jim


Top
 Profile  
 
PostPosted: Wed Apr 16, 2014 7:08 am 
Offline

Joined: Thu Feb 13, 2014 6:05 am
Posts: 4
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

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group