I'm having trouble saving new cards in a compiled/standalone application. Everything works fine until I quit the application, that's when all the newly added cards are deleted. I've tried making a substack in the main application but that doesn't work either. The substack script I'm using is:
on mouseUp
put the name of this stack into nameToSave
save stack nameToSave
Quit
end mouseUp
Any words of wisdom? I've been through all the tutorials and lessons and am still having trouble.
Thanks,
Rich
P.S. It works great in the development environment.
Saving Cards in a Standalone
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Saving Cards in a Standalone
If the substack you're trying to save is part of the standalone IE part of the executable, it is unsavable. An exe can't modify itself. If you look at the standalone settings, on the "stacks" pane, there is a checkbox that will move substacks to standalone stack files. That will probably solve it. Or you can manually seperate the stacks and when your standalone opens, have it open the external stack. Meaning you end up at the same place. I've done the manual method before, haven't actually tried the checkbox setting to have livecode separate the stacks during build.
If you use a datagrid, or.. well you have to make sure all the right externals and such are included in the main stack when the standalone is built in order to support any stuff that will be required by the external stack. But I THINK if you just use that checkbox to have the substacks popped out during build the builder will most likely find what needs to be included.
If you use a datagrid, or.. well you have to make sure all the right externals and such are included in the main stack when the standalone is built in order to support any stuff that will be required by the external stack. But I THINK if you just use that checkbox to have the substacks popped out during build the builder will most likely find what needs to be included.
-
- Posts: 4
- Joined: Thu Jan 19, 2012 3:05 am
Re: Saving Cards in a Standalone
Sturgis,
Thanks for the excellent advice, the check box did the trick
I had a number of e-mail exchanges with support but they didn't come up with this answer???
Thank you for the help, happy coding.
Rich.
Thanks for the excellent advice, the check box did the trick


Thank you for the help, happy coding.
Rich.