Re: How to store some data in my stack

2012-01-25 Thread Klaus on-rev
Konichi-wa Takashi, Am 25.01.2012 um 16:19 schrieb 吉野 孝: > Hi, > > I use LiveCode 5.0.2 for Android devices. > > I would like to store some data in my stack. > But I don't know how to store some data in my stack on an android device. > > At first, I used a field. But the field data is gone at

Re: How to store some data in my stack

2012-01-25 Thread 吉野 孝
Hi, Klaus Thank you for your quick reply! I changed my script, but it does not work on an android. (It does work on my mac.) The following are the test script. (URL is very easy! thanks) - Write button on mouseUp put fld "Data" into URL("file:" & specialFolderPath(“documents”) & "/" & “tes

Re: How to store some data in my stack

2012-01-25 Thread Klaus on-rev
Hi Takashi, Am 25.01.2012 um 16:56 schrieb 吉野 孝: > Hi, Klaus > > Thank you for your quick reply! > > I changed my script, but it does not work on an android. > (It does work on my mac.) > > The following are the test script. > (URL is very easy! thanks) > > - Write button > on mouseUp > put

Re: How to store some data in my stack

2012-01-25 Thread Robert Brenstein
Hi Takashi, put fld "Data" into URL("file:" & specialFolderPath("documents") & "/" & "testFile.txt") I notice that you have two different kinds of quotes in the above. If that is your actual code, those non-programmer's quote might be the problem. robert _

Re: How to store some data in my stack

2012-01-25 Thread Bob Sneidar
They all look good to me. Something must have converted them. Bob On Jan 25, 2012, at 10:39 AM, Robert Brenstein wrote: > Hi Takashi, > >> put fld "Data" into URL("file:" & specialFolderPath("documents") & "/" & >> "testFile.txt") > > I notice that you have two different kinds of quotes in

Re: How to store some data in my stack

2012-01-25 Thread Takashi Yoshino
Hi, Klaus Thank you for your help! > - Read button > on mouseUp > put specialFolderPath(“documents”) & "/" & “testFile.txt” into tFile > if there is a file tFile then >put URL("file:" & tFile) into fld "Data" >put the result into fld "msg" > else > answer "No file yet!" > end if > end

Re: How to store some data in my stack

2012-01-25 Thread J. Landman Gay
On 1/25/12 6:05 PM, Takashi Yoshino wrote: - Read button on mouseUp put specialFolderPath(“documents”)& "/"& “testFile.txt” into tFile if there is a file tFile then put URL("file:"& tFile) into fld "Data" put the result into fld "msg" else answer "No file yet!" end if end mouseUp

Re: How to store some data in my stack

2012-01-25 Thread Takashi Yoshino
>> >> Did someone succeed in writing a file on android? > > I have done it. I'm not sure why your code doesn't work, it's very much like > mine. Did you write a file first before you tried to read it? Yes. I wrote a file first, then read it. I give up this problem... _.__ ._ _. ._ ._.__ .. ._

Re: How to store some data in my stack

2012-01-26 Thread Ken Ray
On Jan 25, 2012, at 10:55 PM, J. Landman Gay wrote: >>> put specialFolderPath(“documents”)& "/"& “testFile.txt” into tFile >>> if there is a file tFile then >>>put URL("file:"& tFile) into fld "Data" >>>put the result into fld "msg" >>> else >>> answer "No file yet!" >>> end if >>>

Re: How to store some data in my stack

2012-01-26 Thread Takashi Yoshino
Hi, Ken > Are you *really* using curly quotes around "documents" and "testFile.txt"? > The only reason I ask is that you have straight quotes around "Data" and "no > file yet!", so I figured I'd check. If so, that might be the problem > (although I'd think you'd get an error dialog first, but)…

Re: How to store some data in my stack

2012-01-27 Thread Ken Ray
On Jan 27, 2012, at 1:57 AM, Takashi Yoshino wrote: > Hi, Ken > >> Are you *really* using curly quotes around "documents" and "testFile.txt"? >> The only reason I ask is that you have straight quotes around "Data" and "no >> file yet!", so I figured I'd check. If so, that might be the problem