Ask dialog and write file to disc

Scott Rossi scott at tactilemedia.com
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

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: scott at tactilemedia.com
Web: www.tactilemedia.com




More information about the use-livecode mailing list