Ask dialog and write file to disc
Barlow Frank
Frank.Barlow at ICL.com
Thu Jan 24 06:30:00 EST 2002
after the ask statement try
put it - into the message box as a check
then change the if statement
if it is empty
then
exit mouseUp
else
put it into fld id 1
end if
Frank
Unconundrum Ltd
frank at adsum.org <mailto:frank at adsum.org>
-----Original Message-----
From: Magnus von Brömsen [mailto:webmaster at studioalice.se]
Sent: 24 January 2002 10:48
To: use-revolution at lists.runrev.com
Subject: Ask dialog and write file to disc
Hello
I use the Ask file command to let the user provide the name and location of
a txt-file. But on testing no file it written to disc.
I get no errors.
So, can anybody tell me what is wrong with this script:
on mouseUp
ask file "Save your order" with "Untitled.txt"
if it is empty then exit mouseUp
open it
write field "totalOrder" to file it
end mouseUp
/magnus
----------------------------------------------------------------------------
----------------------
"En lång resa mot fulländandet – från 6.04 till OSX"
----------------------------------------------------------------------------
----------------------
Studio Alice
Magnus von Brömsen
0702-212 495
0322-633 833
www.studioalice.se
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020124/3654933d/attachment.html>
More information about the use-livecode
mailing list