User Tools

Site Tools


en:opensavefiledialog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:opensavefiledialog [2020/06/09 09:26]
admin created
en:opensavefiledialog [2020/06/09 09:38] (current)
admin
Line 4: Line 4:
 **openfiledialog** ( [[stringexpressions|prompt]], [[stringexpressions|path]], [[stringexpressions|filter]] )\\ **openfiledialog** ( [[stringexpressions|prompt]], [[stringexpressions|path]], [[stringexpressions|filter]] )\\
 **savefiledialog** ( [[stringexpressions|prompt]], [[stringexpressions|path]], [[stringexpressions|filter]] )\\ **savefiledialog** ( [[stringexpressions|prompt]], [[stringexpressions|path]], [[stringexpressions|filter]] )\\
 +
 +returns [[stringexpressions|file_name]] or "" if no file was selected.
  
 ==== Description ==== ==== Description ====
 Displays a system dialog that allows a user to select an existing file (open/save) or a new file name (save).  The function has three parameters: 1) a prompt message that will be displayed in the top of the dialog window, 2) the path or filename where the dialog box opens to, and 3) a string containing filters for specific file types. Displays a system dialog that allows a user to select an existing file (open/save) or a new file name (save).  The function has three parameters: 1) a prompt message that will be displayed in the top of the dialog window, 2) the path or filename where the dialog box opens to, and 3) a string containing filters for specific file types.
  
 +If the path is the empty string '' then the current folder will be opened.  Filters may be specified in the format "name (*.ext *.ext...)"  if multiple filters are desired you must use two semicolons to separate them.
  
 +===- Example ====
 +<code>
 +f = openfiledialog("",".","Images (*.png *.xpm *.jpg);;Text files (*.txt);;XML files (*.xml)")
 +print f
 +</code>
 ==== See Also ==== ==== See Also ====
-{{page>en:start#Other Statements and Functions&noheader}}+{{page>en:start#File and Serial Port Input/Output&noheader}}
  
 ==== New To Version ====  ==== New To Version ==== 
 2.0.0.6 2.0.0.6
en/opensavefiledialog.1591716376.txt.gz · Last modified: 2020/06/09 09:26 by admin