Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LiveCode Mobile Development Beginner's Guide (2nd Edition)

You're reading from   LiveCode Mobile Development Beginner's Guide (2nd Edition) Create interactive mobile apps for Android and iOS with LiveCode

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781849699655
Length 256 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Colin Holgate Colin Holgate
Author Profile Icon Colin Holgate
Colin Holgate
Joel W Gerdeen Joel W Gerdeen
Author Profile Icon Joel W Gerdeen
Joel W Gerdeen
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. LiveCode Fundamentals FREE CHAPTER 2. Getting Started with LiveCode Mobile 3. Building User Interfaces 4. Using Remote Data and Media 5. Making a Jigsaw Puzzle Application 6. Making a Reminder Application 7. Deploying to Your Device A. Extending LiveCode Index

Time for action – creating a data save stack

We're going to make a copy of a stack, but only if another copy of that stack doesn't exist. LiveCode has a nice if there is a… function, which was made for times like this!

First, we will create the stacks we'll need by following these steps:

  1. Start a new Mainstack with the name LaunchStack. Save it somewhere other than your computer's Documents folder.
  2. Start another new Mainstack with the name AppStack. Save it in the same folder as the first stack.
  3. Place some data on each stack's card, so that you can easily recognize when you're in that stack. For example, drag a button onto the card of the LaunchStack stack and name it in a way that makes it very easy to recognize. Do the same for the AppStack stack.
  4. Put the following openStack handler in the stack script of LaunchStack:
    on openStack
      set the defaultFolder to specialFolderPath("Documents")
      if there is not a file "AppStack.livecode&quot...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime