OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

dlgSave

Contents

Brief Information

Prompt user with an Save as dialog.

Additional Information

X-Function not designed for Auto GetN Dialog.

Command Line Usage

1. dlgSave;

2. dlgSave fname:=myfile;

3. dlgSave ext:=*.ogs title:="Saving GIF file location";

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
fname

Output

string

fname$

The string that will receive path and name of the user's chosen file.

file extension ext

Input

string

*.*

Optional string used to initialize the dialog with settings from a file extension group.

init

Input

string

User Files

Optional string used to initialize the file path (for opening, saving, etc.) in the dialog.

Save as dialog title title

Input

string

Optional string used to set the dialog's title.

Description

If you want to put the result into the system variable fname$, use the follow command:

dlgSave;

If you want to put the result into the variable myfile$, use the following command:

dlgSave myfile;

If you want to save the file as ogs type, with a dialog title as "Saving OGS file location", then you can use the following command:

dlgSave ext:=*.ogs title:="Saving OGS file location";

Related X-Functions