Command: FileDlgShow
- Updated2024-09-12
- 4 minute(s) read
Command: FileDlgShow
Command: FileDlgShow
Calls the file selection dialog box.
Input Parameters
![]() |
Specifies a file. You also can specify the path and the filename extension. |
![]() |
Specifies the file type. |
![]() |
Specifies the dialog box caption. |
![]() |
Specifies whether one file or multiple files can be selected. The default value is FALSE and specifies that you can select only one file. |
Return Parameters
![]() |
Receives the status of a dialog box after you exit the dialog box. The return value is a DlgState type. |
![]() | Receives a field with all selected files including the path. |
Examples
In the following example, DIAdem opens the file selection dialog box and loads the selected file.
VBScript | Python |
If FileDlgShow(DataReadPath, "TDM Files,*.tdm|DAT Files,*.dat|Excel Files, *.csv;*.xls", "Data selection", false) = "IDOk" then Call DataFileLoad(FileDlgNameList(0)) Else Call MsgBox ("The loading of the data was aborted.") End If
In the following example, DIAdem opens the file selection dialog box and loads the selected files.
VBScript | Python |
Dim iCount Call FileDlgShow(DataReadPath, "TDM Files,*.tdm|DAT Files,*.dat|Excel Files, *.csv;*.xls", "Data selection", True) For iCount = 0 To Ubound(FileDlgNameList) Call DataFileLoad(FileDlgNameList(iCount)) Next