Save question

Chipp Walters chipp at chipp.com
Mon Apr 23 02:50:36 EDT 2007


Joe,
(It's Chipp with 2 p's)

First of all, you can't save data in a standalone. I assume you
already know this. You need to store your data in a stack or file
OUTSIDE the standalone.
If what you're after is the 'Save As..' dialog, read up on "ask file".

There are two parts to Save As. The first part is asking the user for
the pathname to save the file to. The second part is actually doing
the save.

Create a button:

on mouseUp
  ask file "Choose a place to save your stack"
  if the result is "cancel" or it is empty then exit to top
  put it into tPathname
  save stack "JoesStack" as tPathname
end mouseUP

This will save the stack "JoesStack" to the file specified.

-Chipp



More information about the use-livecode mailing list