"Answer File" Command - Need to Save Instead of Op

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

"Answer File" Command - Need to Save Instead of Op

Post by ChristopherBodell » Mon Mar 10, 2008 5:52 am

If anyone can help with this, I would appreciate it, I need a way to use the "answer file" command but i need the buttons to be "save" and "cancel" istead of "open" and "cancel". I cennot find it in the Documentation anywhere and nothing similar that can help. I need the user to be able to define the save location but not only using the answer folder command. As of right now, thats what i have to use.

If anyone can help, again, it would be greatly appreciated. Many Thanks.
Christopher

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Mar 10, 2008 10:57 am

Try this:

...
ASK file "Where do you want to save the file?"
## See the docs for "ASK FILE"
...

That will return in IT the path and name to the file.


Regards

Klaus

ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Ask File Reply

Post by ChristopherBodell » Tue Mar 11, 2008 12:16 am

Klaus,

Thanks a lot, that is exactly what i was looking for,
I knew you could do the ask dialogue but i forgot you could do it as "ask file", i remembered using this before in a simple text editor before when i was just experimenting but i forgot all about it. Anyways, thanks again,

Many Thanks,
Christopher

Post Reply