PdcApplication.SaveECIFileDialog: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
SaveECIFileDialog(FileMask As String, InitialDirectory As String, FileName As String) as String
SaveECIFileDialog(FileMask As String, InitialDir As String, FileName As String) as String


== Description ==
== Description ==
Line 9: Line 9:
FileMask : A pattern that used to filter the files that are shown and can be selected. If this is empty the default '*.*' is used.<br>
FileMask : A pattern that used to filter the files that are shown and can be selected. If this is empty the default '*.*' is used.<br>
FileName: The pre-entered filename to save as. This can still be changed by the user in the dialog. <br>
FileName: The pre-entered filename to save as. This can still be changed by the user in the dialog. <br>
InitialDirectory : the initial directory where the file browser is opened. If this is empty, or the directory cannot be found, it will open at the root level. If this parameter contains a local path, and Bemet is being run in the ECI cloud, the path will be translated to a tsclient path. Example: "C:\Users\Admin\Documents\" will be changed to "\\tsclient\C\Users\Admin\Documents\"<br>
InitialDir : the initial directory where the file browser is opened. If this is empty, or the directory cannot be found, it will open at the root level. If this parameter contains a local path, and Bemet is being run in the ECI cloud, the path will be translated to a tsclient path. Example: "C:\Users\Admin\Documents\" will be changed to "\\tsclient\C\Users\Admin\Documents\"<br>


== Notes ==
== Notes ==

Latest revision as of 13:24, 25 September 2023

Declaration

SaveECIFileDialog(FileMask As String, InitialDir As String, FileName As String) as String

Description

Open a file browser dialog via Bemet to select a location and filename to save as. This will return the full path of the selected file as a String. If this form is canceled without selecting a file, an empty string will be returned.

Parameters

FileMask : A pattern that used to filter the files that are shown and can be selected. If this is empty the default '*.*' is used.
FileName: The pre-entered filename to save as. This can still be changed by the user in the dialog.
InitialDir : the initial directory where the file browser is opened. If this is empty, or the directory cannot be found, it will open at the root level. If this parameter contains a local path, and Bemet is being run in the ECI cloud, the path will be translated to a tsclient path. Example: "C:\Users\Admin\Documents\" will be changed to "\\tsclient\C\Users\Admin\Documents\"

Notes

This method is available both in the EciCloud and in the on-prem version of Bemet. But in the on-prem version it will use the regular windows dialog, and in the Eci Cloud it will use our secure custom dialog.

Code example

Dim Result As String = PDC.App.SaveECIFileDialog(tbFileMask.Text, tbFileName.Text, "C:\Users\Admin\Documents\")

Availability

Available since september 2023. Bemet 2023R4 and higher.