Importing text file to save as a custom property
Posted: Fri Jan 25, 2013 1:21 am
Hello everyone,
I've been having some difficulty trying to save a custom property from a locally saved text file. I was looking around the runrev documentation and I basically want to recreate this effect shown in Step 4. http://lessons.runrev.com/s/lessons/m/4 ... -LiveCode-
I know that this URL works because I am able to successfully save the file to that location, but I just can't seem to load the values back in. Would anyone have any advice on how I can do this? Thank you!
I've been having some difficulty trying to save a custom property from a locally saved text file. I was looking around the runrev documentation and I basically want to recreate this effect shown in Step 4. http://lessons.runrev.com/s/lessons/m/4 ... -LiveCode-
Code: Select all
on preOpenStack
loadFile
put the cProperty of this stack into field "MyProperty"
end preOpenStack
on loadFile
put(URL("file://mnt/sdcard/myproperty.txt")) into tPath
if there is a file tPath then
set the cMyPropertyof this stack to URL("file://mnt/sdcard/myproperty.txt")
end if
end loadInGameMoney