I’ve been working on my project for a couple of years now and believe it or not I still have no idea how to save a Livecode stack. Is it just me? It must be.
I have around 40 individual stacks that I am working on, they all do different things and if I work on one and save it, that’s fine.
Eventually I will need to package all of the stacks together as substacks of a main stack and that’s where I get totally confused with how to do it.
Because there is no ‘undo’ with Livecode, I have to regularly save a copy of the stack I am working on when I’ve made progress and then I save this as the base stack every so often, so that when I create a test standalone it will use the right stack.
I have to save duplicate copies very regularly because the if I edit some script, I have to click in the script box several times, if I forget and just click once or twice, even though the cursor is flashing away in the script box, if I press delete it deletes anything that is selected in the card window, and sometimes I don’t realise just how much it has deleted straight away.
I’ve put some of the stacks which are just about finished into the main stack, so when I save the main stack will this also save the substacks? I assume it will. I’m not sure though. I'm also not sure how Livecode deals with stacks which are in memory when you click the save button.
The problem I have is that I work on a stack and save it, and this works OK for a while then later on when I open it, the contents are from a year ago. It is totally bizarre.
This last month I have redone alterations time and time again and saved the stacks only to find them all undone again and the saved stack has reverted back to what I saved 6 months ago.
I’m not sure what I am doing wrong or how to overcome it.
What would be the best way to achieve what I am trying to do?
Saving stacks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Saving stacks
Hi,
not sure what the problem is, but:
1. Yes, when you save a stack ALL stack (main and substacks) in the stack file are being saved!
2. LC does not like two stacks with the same name, not sure WHICH one of 2 identical stacks
Liveoce will access, maybe that will cause you problems?
3. You can use separate files/stacks in a standalone, so maybe using substacks is not neccessary at all?
Best
Klaus
not sure what the problem is, but:
1. Yes, when you save a stack ALL stack (main and substacks) in the stack file are being saved!
2. LC does not like two stacks with the same name, not sure WHICH one of 2 identical stacks
Liveoce will access, maybe that will cause you problems?
3. You can use separate files/stacks in a standalone, so maybe using substacks is not neccessary at all?
Best
Klaus