Ask dialog and write file to disc

Magnus von Brömsen webmaster at studioalice.se
Thu Jan 24 05:51:02 EST 2002


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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 785 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020124/8068d0ac/attachment.bin>


More information about the use-livecode mailing list