New Card

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
marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

New Card

Post by marcelloe » Wed Jan 29, 2014 5:27 pm

I want to create a new card to be added to the stack and also add a small view of the newly created card to the first card. I want to create new cards after the app is created into a standalone app. Is this possible?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: New Card

Post by FourthWorld » Wed Jan 29, 2014 5:32 pm

From the section of the User Guide on building standalones (p299):
Note: A stack file directly attached to a standalone application cannot have changes saved to it. This stack is bound directly to the executable file that runs. The OS locks an executable file while it is running. If you want to save changes in your standalone application, split your stack up until multiple files. A common technique is to create a "splash screen" stack that contains a welcome screen and then loads the stacks that make up the rest of your application. These stacks are referenced as stackFiles on this pane in the standalone settings screen. It is thus possible to automatically update these component stacks, or to save changes to them. You may also want to consider creating preference files in the appropriate location on your end user's system (see the specialFolderPath function and query/setRegistry functions for more information).
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: New Card

Post by marcelloe » Wed Jan 29, 2014 5:46 pm

Let me see if I understand this correctly. I can create a substack with all the cards that I will need and call those cards to be used?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: New Card

Post by dunbarx » Wed Jan 29, 2014 7:02 pm

No.

A substack would be part of the stack file that cannot be modified.

You can, however, move those substacks into separate stack files in the standalone settings dialog, and you can also add as many other stack files to that package as you wish. The "main" stack will be the executable, and all the attached stack files may be changed and saved as needed.

Craig Newman

Post Reply