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
Cant Open Data Stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Cant Open Data Stack
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode