Indigo Rose Software
  #1  
Old 10-01-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Displaying a Save As Dialog

AutoPlay Media Studio 5.0 Knowledge Base

Displaying a Save As Dialog

Document ID: IR10067
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to display a save as dialog to the user.

DISCUSSION

A Save As dialog is often presented to allow a user to select a location to save a file to.

  1. To display a Save As dialog using AutoPlay Media Studio 5.0:

    Create a Dialog.FileBrowse action. Set the FileOpen property to false:
    file=Dialog.FileBrowse(false, "Save As", "c:\\", "All Files (*.*)|*.*|", "", "", false, true);

    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.

  2. 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:
    File.Copy("c:\\example.exe", file[1], false, false, false, false, nil);

MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | Dialog | Dialog.FileBrowse
  • Program Reference | Actions | File | File.Copy

KEYWORDS: AutoPlay Media Studio 5.0, Dialog, Save


Last reviewed: October 1, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software