Cant Open Data 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
omtracey
Posts: 1
Joined: Wed Aug 31, 2011 10:42 pm

Cant Open Data Stack

Post by omtracey » Wed Aug 31, 2011 10:52 pm

I am attempting to make an App in iOS that contains Data, and am attempting to create a Secondary Stack for the Data, whereas the Primary Stack will just be a splash screen.

I followed the Tutorial to Create the Stocks Stack, which does save data, but for some reason, I am unable to get my Data Stack to load in the iOS simulator. My Script is successful all the way to the last line, it simply wont open/display the Stack. I can see the Stack in the MacOS Finder, it got copied to the proper location, but how do I get it to display/open?

on mouseUp
put specialFolderPath("documents") & "/RoboDexData.livecode" into tMainStackPath
if there is not a file tMainStackPath then
## This is the first time the app has been run
put specialFolderPath("engine") & "/RoboDexData.livecode" into tOriginalStackPath
put url ("binfile:" & tOriginalStackPath) into url ("binfile:" & tMainStackPath)
end if
go stack tMainStackPath
end mouseUp

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Cant Open Data Stack

Post by Mark » Thu Sep 01, 2011 12:37 am

Hi,

AFAIK you can use only one stack window in LiveCode for mobile devices. You will have to find a different way to save your data, e.g. in text files. A splash screen is already built in. This splash screen is shown until the preOpenStack (and preOpenCard, preOpenBackGround, startUp, etc) handler has finished.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply