I used to use the following script to save and read a data file from the iPhone, and I'm using it now on the iPad, and it just won't work. When I put the saved data into a field, I get the PATH to the file, rather than the file itself.
on mouseUp
put field masterdata into md
put (specialFolderPath("Documents") & "/tmdata.livecode") into tPathToDatabase
put "file:" before tPathtodatabase
put md into URL tPathtodatabase
put URL tPathtodatabase into field "tempx"
end mouseUp
trying to save data to iPad
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: trying to save data to iPad
I got it to work. But. now i can't get it to work on closestack. When you quit an app by going to the iOS desktop, is that a "closestack"? Because this script will NOT work in "on closestack"
Re: trying to save data to iPad
Try "on shutdown".adventuresofgreg wrote:I got it to work. But. now i can't get it to work on closestack. When you quit an app by going to the iOS desktop, is that a "closestack"? Because this script will NOT work in "on closestack"
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: trying to save data to iPad
That was it! Thanks. Why didnt they just keep on closestack? I mean, in iOS, what is "closestack" then?