Saving a data stack in android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Saving a data stack in android
Yup, that'd be a problem and would explain what you're seeing. I think you need to go back to the script that moves the stack to Documents. But again, I'm still confused about the stack you are trying to copy. The appstack has to be a separate, independent stack that you've put into the Copy Files pane in standalone settings. Is that what it is? It shouldn't be a substack of your mainstack, those are part of the app itself.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 14
- Joined: Mon Dec 15, 2014 4:51 am
Re: Saving a data stack in android
Yes, it is a separate stack and it was added in the copy files pane.
Re: Saving a data stack in android
I just noticed the capitalization. Mobile operating systems are case-sensitive, so you need to use a lower-case "d" when specifying the special folder path. Otherwise, the copy will fail:
That may be the problem.
Code: Select all
set the defaultFolder to specialFolderPath("documents")
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 14
- Joined: Mon Dec 15, 2014 4:51 am
Re: Saving a data stack in android
Bingo! Something so basic. Thanx for the help.
Re: Saving a data stack in android
I thought that would not be the case since "specialfolderpath()" is a Livecode function?jacque wrote:I just noticed the capitalization. Mobile operating systems are case-sensitive, so you need to use a lower-case "d"
when specifying the special folder path. Otherwise, the copy will fail:That may be the problem.Code: Select all
set the defaultFolder to specialFolderPath("documents")

Re: Saving a data stack in android
It's a LiveCode function, but it passes the folder name to the OS exactly as you've typed it. If the OS is case-sensitive, it fails.Klaus wrote: I thought that would not be the case since "specialfolderpath()" is a Livecode function?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Saving a data stack in android
I'm glad we got it figured out, and sorry it took so long. You had me puzzled for a while because saving a stack is such a basic process. I should have noticed the capitalization earlier, since the main thing that can go wrong is an incorrect file path.keith.izatt wrote:Bingo! Something so basic. Thanx for the help.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Saving a data stack in android
Ah, OK, I thought that would be translated internally first somehow! Thanks for the heads-up!jacque wrote:It's a LiveCode function, but it passes the folder name to the OS exactly as you've typed it. If the OS is case-sensitive, it fails.Klaus wrote:I thought that would not be the case since "specialfolderpath()" is a Livecode function?
And now merry christmas etc...

-
- Posts: 14
- Joined: Mon Dec 15, 2014 4:51 am
Re: Saving a data stack in android
A true christmas miracle! Thanks again. Solved a problem I have had for quite a while.