- Manual Scilab
- IGU
- Tree
- about
- addmenu
- clipboard
- close
- delmenu
- exportUI
- figure
- findobj
- gcbo
- getcallbackobject
- getinstalledlookandfeels
- getlookandfeel
- getvalue
- messagebox
- printfigure
- printsetupbox
- progressionbar
- root_properties
- setlookandfeel
- setmenu
- toolbar
- toprint
- uicontrol
- uigetcolor
- uigetdir
- uigetfile
- uigetfont
- uimenu
- uiputfile
- unsetmenu
- usecanvas
- waitbar
- x_choices
- x_choose
- x_choose_modeless
- x_dialog
- x_matrix
- x_mdialog
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
uiputfile
Open standard dialog box for selecting and saving file.
Calling Sequence
[FileName[,PathName[,FilterIndex]]]=uiputfile([file_mask[,dir[,boxTitle]]]) PathFileName=uiputfile([file_mask[,dir[,boxTitle]]])
Input parameters
- file_mask
a string matrix which gives the file masks to use for file selection.
file_mask
is written with Unix convention. The default value is '*'.we can also add descriptions for masks, for example ["*.x*","X files";"*.bin","BIN files"].
- dir
a character string which gives the initial directory used for file search. By default uiputfile uses the previously selected directory.
- boxTitle
a character string which gives the title of the uiputfile window. By default uiputfile's title is 'uiputfile'.
Output parameters
- FileName
string which give the user selected file (path + file name) if user answers "Ok" or the " " string if user answers "Cancel".
- PathName
is the user selected file path if user answers "Ok" or the " " string if user answers "Cancel".
- FilterIndex
is the user selected filter index on the list box if user answers "Ok" or '0' string if user answers "Cancel"
Description
Creates a dialog window for file saving.
Examples
uiputfile(["*.bin";"*.sce";"*.cos*"]) uiputfile(["*.sci";"*.bin"],"SCI/modules/gui/macros/") uiputfile(["*.sc*";"*.bin"],"SCI/modules/gui/macros/") uiputfile(["*.x*","X files";"*.bin","BIN files"],"SCI/modules/gui/macros/") uiputfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name");
<< uimenu | IGU | unsetmenu >> |