PdcApplication.OpenFileDialog: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
OpenFileDialog( | OpenFileDialog(Mask As String, AllowMulti As Boolean) as String | ||
== Description == | == Description == | ||
Line 16: | Line 16: | ||
== Code example == | == Code example == | ||
<source lang="vb"> | <source lang="vb"> | ||
Dim Result As String = PDC.App.OpenFileDialog( | Dim Result As String = PDC.App.OpenFileDialog(tbFileMask.Text, cbAllowMulti.Checked) | ||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since | Available since april 2023. Bemet 2023R2 and higher. |
Latest revision as of 14:15, 4 April 2023
Declaration
OpenFileDialog(Mask As String, AllowMulti As Boolean) as String
Description
Open a file browser dialog via Bemet to select a file to upload. This will return the full path of the selected file as a String. If multiple files are selected, then their paths will be returned as a commaseparated 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. If you want to only show pdf files, you can use *.pdf .
AllowMulti : Allow the user to select multiple files
Notes
This method is only available in the EciCloud!!
When used in an on-prem version of Bemet, it will return an empty string, and write an error to LastErrorString.
Code example
Dim Result As String = PDC.App.OpenFileDialog(tbFileMask.Text, cbAllowMulti.Checked)
Availability
Available since april 2023. Bemet 2023R2 and higher.