Loosing substacks

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Loosing substacks

Post 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.
rebuilding visual programming app originally created in 1993 as Hypercard stack
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Loosing substacks

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Loosing substacks

Post 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
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Loosing substacks

Post by FourthWorld »

melristau, are you certain you're choosing "New Substack" rather than "New Stack" from the File menu?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: Loosing substacks

Post 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.
:oops:
rebuilding visual programming app originally created in 1993 as Hypercard stack
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Loosing substacks

Post 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. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Loosing substacks

Post 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
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: Loosing substacks

Post 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.
Attachments
savePlanner.gif
savePlanner.gif (8.03 KiB) Viewed 5153 times
rebuilding visual programming app originally created in 1993 as Hypercard stack
Post Reply