Page 1 of 1

Persistent values in deployed apps

Posted: Mon Oct 29, 2012 1:54 am
by alexGAzLSp
Hi, I'm developing my first Windows & Apple app in LiveCode and am now starting to appreciate its rapid development capabilities. Like many other experienced developers from a traditional edit-compile-run environments, I have taken some time to understand the persistent nature of LiveCode values from session to session. I've read tutorials like use of alternative to global variables as well as the tutorial on launching and saving a separate main stack, and, of course, forum entries.

I appreciate if someone could summarise which values in the main application (as opposed to external files and databases) will 'stick' between multiple executions of the same deployed application. This will check my understanding.

Of course, I'd appreciate any other advice to manage the persistency better. Thanks, Alex :D

Re: Persistent values in deployed apps

Posted: Mon Oct 29, 2012 2:29 am
by FourthWorld
alexGAzLSp wrote:I appreciate if someone could summarise which values in the main application (as opposed to external files and databases) will 'stick' between multiple executions of the same deployed application.
None. All modern operating systems prevent an executable from being able to modify itself for security purposes.

Any data you want to store between sessions will have to be done outside the app - this article provides some useful tips:
http://livecodejournal.com/tutorials/sa ... ution.html

Re: Persistent values in deployed apps

Posted: Mon Oct 29, 2012 9:36 pm
by alexGAzLSp
Excellent, thank you for the reference. Alex :)