Listing all the stacks that make up a stack

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
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Listing all the stacks that make up a stack

Post by Mag » Tue Dec 13, 2016 11:51 am

When you deal with external file stacks you have a lot of new things to keep in count, for example you cannot open a file stack that has the same name of a stack you use in your project because they can conflict (another one is that you cannot open file stacks with a integer as name because can conflict with the possibility of LC to refer to a stack with its name).


If you want to have a list of openStacks, you can use "the openStacks", is there also the possibility to dinamically list all the stack and substacks that make up a project (open and close ones)?

Ledigimate
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 132
Joined: Mon Jan 14, 2013 3:37 pm

Re: Listing all the stacks that make up a stack

Post by Ledigimate » Tue Dec 13, 2016 1:18 pm

the mainStacks
lists all main stacks currently loaded into memory (one stack per line).

the subStacks of stack "mainStackName"
lists the substacks of a main stack, (one per line).

I hope this helps.

Gerrie
010100000110010101100001011000110110010100111101010011000110111101110110011001010010101101010100011100100111010101110100011010000010101101001010011101010111001101110100011010010110001101100101

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Listing all the stacks that make up a stack

Post by Mag » Tue Dec 13, 2016 4:53 pm

Thank you Gerrie, it's exactly what I was searching for.

Post Reply