OpenFileDialog returns the string of the path the user has selected using the open file dialog.

 

Syntax:

completeFilePath = OpenFileDialog( [filter extension], [file Name], [start path] )

 

Parameter:

Description:

[filter extension]

Optional: This is for filter extensions, like .exe, .txt or .csv

[file Name]

Optional: Use this field for the file name to find.

[start path]

Optional: Use the path field to specify where the dialog will open a disk location.

 

Example:

'  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"

PRINT OpenFileDialog( "Text Files|*.txt;*.csv", "orders.txt", fileManager.DefaultFolder )
PRINT SaveFileDialog( "Text Files|*.txt;*.csv", "orders.txt", fileManager.DefaultFolder )

Returns:

When this function is working, a Windows file dialog will appear.

 

Links:

 

See Also:

 

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 441

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software