trying to save data to iPad
Posted: Fri Oct 28, 2011 12:13 am
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
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