Using substacks versus external stacks

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 265
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Using substacks versus external stacks

Post by kaveh1000 » Fri Aug 16, 2019 1:18 pm

I have around 10 substacks in a mainstack. I have been wondering what the relative advantages are to having external stacks instead and when building a standalone, just ensure they are bundled with the main stack to be distributed.

Any general advice?
Kaveh

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2349
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Using substacks versus external stacks

Post by jmburnod » Fri Aug 16, 2019 1:40 pm

Hi Kaveh,
I use extrenal stacks because it can be updated without compil
As Klaus said we can't save an external stack from a standalone but we can export/import data from .txt files, i mean content but properties of controls too. :D
Best regards
Jean-Marc

Klaus
Posts: 11056
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Using substacks versus external stacks

Post by Klaus » Fri Aug 16, 2019 2:09 pm

Hi kaveh,

what Jean-Mard said.
kaveh1000 wrote:
Fri Aug 16, 2019 1:18 pm
...just ensure they are bundled with the main stack to be distributed.
In that case add all of your separate stacks via the "Copy files" tab in the "Standalone Application Settings" and access them in your standalone with:

Code: Select all

...
put specialfolderpath("resources") & "/name of separate stack.livecode" into tExternalStack
## Now do whatever you like with tExternalStack :-)
...
Best

Klaus

Post Reply

Return to “Talking LiveCode”