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!
I've set up a really simple little stack with a table field that entered data is saved into. When I set the stack up as a stand alone application it doesn't save the changes i.e. the new data enetred into the field. I have put a closestack script as shown below. What have I done wrong?
The main stack of your standalone cannot save changes to itself... but a substack can... So, how about using your main stack as a 'splash screen'.... which opens when you open your app... Have a button on the splash screen that opens a sub-stack and closes the 'splash screen'... You are now effectively using the sub-stack as the 'main' stack of your application..
In the stack script of your sub-stack, save the changes you have made, they will be there the next time you run your app.
Note that "substack" is a specific term in runrev, and substsacks of the mainstack are in the same stackfile, therefore cannot be saved. What you mean is a seperate stack, that is not part of the application itself and gets loaded somewhen.