Page 1 of 1
Loosing substacks
Posted: Wed Jul 20, 2016 3:37 am
by melristau
When a main stack is open and one of its substacks is also open, is a save of the main stack also saving its substacks.
I've three times today had to recreate a substack palette because it disappears from disk.
I've been
1) using "top-level stack "mypalette" to make changes and then saving.
2) Making changes to the main stack and then saving.
All this with both stacks open at same time.
Wondering if my saving the the main stack and then saving the substack palette is the problem.
Re: Loosing substacks
Posted: Wed Jul 20, 2016 10:59 am
by Klaus
Hi Mel,
I am using LC and its ancestors (Revolution and MetaCard) since 1999 and have never experienced this!?
Of course simply saving a stack does not cause a loss of anything.
Best
Klaus
Re: Loosing substacks
Posted: Wed Jul 20, 2016 2:56 pm
by dunbarx
Hi.
Make a stack and a substack. Save the mainstack.
Place a field on each card in each stack. Put a number in each field.
Save. Quit LC. Open LC and go to the substack. Your number is there.
Now change the number in the substack only. Save the mainstack. Quit LC again, and reopen
Go to the substack. The new number is there.
Craig Newman
Re: Loosing substacks
Posted: Wed Jul 20, 2016 3:51 pm
by FourthWorld
melristau, are you certain you're choosing "New Substack" rather than "New Stack" from the File menu?
Re: Loosing substacks
Posted: Wed Jul 20, 2016 4:05 pm
by melristau
Thanks again for help here. Just noob ignorance...
Now see through Project Browser that the stacks in question are part of main stack instead of individual .livecode files.

Re: Loosing substacks
Posted: Wed Jul 20, 2016 4:17 pm
by FourthWorld
melristau wrote:Thanks again for help here. Just noob ignorance...
You're in good company: ignorance is a state everyone experiences at least once, and with LiveCode's features growing as they have been in recent versions I get to experience it frequently.

Re: Loosing substacks
Posted: Wed Jul 20, 2016 6:12 pm
by dunbarx
owser that the stacks in question are part of main stack instead of individual .livecode files.
This is important. Only stack files can be added to a splash stack suite to create a standalone that can save those other stacks. Substacks have to be explicitly moved into their own stack files (an option in the standalone settings) to effect this.
Craig Newman
Re: Loosing substacks
Posted: Thu Jul 21, 2016 2:21 am
by melristau
Craig,
I think I understand your note yet I'm likely a long way off from testing a stand alone.
The image lists what I see when saving my stack.
Highlighted items (thought missing palettes) need to be deleted.