Cant Open Data Stack
Posted: 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
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