PDA

View Full Version : Displaying a Save As Dialog



Desmond
10-01-2003, 04:53 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Displaying a Save As Dialog</h3> <b>Document ID: IR10067</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to display a save as dialog to the user.</p> <h3>DISCUSSION</h3> <p>A Save As dialog is often presented to allow a user to select a location to save a file to.</p> <ol> <li>To display a Save As dialog using AutoPlay Media Studio 5.0:<br> <br> Create a Dialog.FileBrowse action. Set the FileOpen property to false:<br> <code> file=Dialog.FileBrowse(false, "Save As", "c:\\", "All Files (*.*)|*.*|", "", "", false, true);<br></code> <br> Please note that file is a table. In the above example, multiple file select is not allowed. To access the path returned by the FileBrowse action, use file[1] as a variable. This gets the value from the first position of the table.<br> <br> </li> <li>If you are using the Save As dialog to copy a file from your cd to the user's system, you must use a File.Copy command after the Save As dialog has been displayed:<br> <code> File.Copy("c:\\example.exe", file[1], false, false, false, false, nil);</codE> </li> </ol> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | Dialog | Dialog.FileBrowse</b></li> <li><b>Program Reference | Actions | File | File.Copy</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Dialog, Save </p> <hr> <FONT SIZE=1> Last reviewed: October 1, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>