PdcApplication.OpenFolderDialog: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == OpenFolderDialog(InitialDirectory As String) as String == Description == Open a file browser dialog via Bemet to select a folder. This will return the full..."
 
No edit summary
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
OpenFolderDialog(InitialDirectory As String) as String
OpenFolderDialog() as String


== Description ==
== Description ==
Open a file browser dialog via Bemet to select a folder. This will return the full path of the selected folder as a String.  
Open a file browser dialog via Bemet to select a folder. This will return the full path of the selected folder as a String.  
If this form is canceled without selecting a file, an empty string will be returned.
If this form is canceled without selecting a file, an empty string will be returned.
== Parameters ==
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.<br>


== Notes ==
== Notes ==
Line 15: Line 12:
== Code example ==
== Code example ==
<source lang="vb">
<source lang="vb">
Dim Result As String = PDC.App.OpenFolderDialog(tbInitialDirectory.Text)
Dim Result As String = PDC.App.OpenFolderDialog()
</source>
</source>


== Availability ==
== Availability ==
Available since march 2023. Bemet 2023R2 and higher.
Available since april 2023. Bemet 2023R2 and higher.

Latest revision as of 14:17, 4 April 2023

Declaration

OpenFolderDialog() as String

Description

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

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.OpenFolderDialog()

Availability

Available since april 2023. Bemet 2023R2 and higher.