Ask dialog and write file to disc

Scott Rossi scott at
Thu Jan 24 06:02:02 EST 2002

Recently, Magnus von Brömsen wrote:

> 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 

Looks like you're missing a line to finish the write command.  Try this:

  open file it 
  write field "totalOrder" to file it
  close file it


Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: scott at

More information about the Use-livecode mailing list