SaveFileDialog returns the string of the path the user has selected using the save file dialog.
The filter extensions are a paired string separated by a |.
So "Text Files|*.txt" would display Text Files and show only files ending with .txt.
For multiple extensions for the same display name use a semi colon as in the example below.
"Text Files|*.txt;*.csv"
You can set multiple filters such as:
"Text Files|*.txt|CSV Files|*.csv"
Syntax: |
---|
completeFilePath = SaveFileDialog( , , ) |
Parameter: |
Description: |
---|---|
[filterExtension] |
Optional: This is for filter extensions, like .exe, .txt or .csv |
[fileName] |
Optional: Use this field for the file name to find. |
[startPath] |
Optional: Use the path field to specify where the dialog will open a disk location. |
Example: |
---|
PRINT OpenFileDialog( "Text Files|*.txt;*.csv", _ "orders.txt", fileManager.DefaultFolder ) "orders.txt", fileManager.DefaultFolder ) |
Returns: |
A string containing the complete path the user selected |
Links: |
---|
See Also: |
|
Edit Time: 10/23/2020 10:31:46 AM |
Topic ID#: 514 |