Persistent values in deployed apps

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alexGAzLSp
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 14
Joined: Wed Dec 07, 2011 1:39 pm

Persistent values in deployed apps

Post by alexGAzLSp » Mon Oct 29, 2012 1:54 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Persistent values in deployed apps

Post by FourthWorld » Mon Oct 29, 2012 2:29 am

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

alexGAzLSp
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 14
Joined: Wed Dec 07, 2011 1:39 pm

Re: Persistent values in deployed apps

Post by alexGAzLSp » Mon Oct 29, 2012 9:36 pm

Excellent, thank you for the reference. Alex :)

Post Reply