### Select Folder

To select a folder use the DirectoryChooser subroutine from the jFX library.
Note:
The folder chooser will start from the previously chosen folder (unless override by InitializeDirectory).
Example Sub returning folder selected with dirtemp as initial folder
`Sub selectFolder As String
Dim dc As DirectoryChooser
dc.Initialize
dc.InitialDirectory = File.DirTemp
dc.Title = "Select a Folder"
Dim folder As String = dc.Show(MainForm)
Log("Folder selected: " & folder)
Return folder
End Sub`
Example Sub returning folder selected with form and initial folder as parameter
`Public Sub SelectFolder(frm As Form, folder As String) As String
Dim dc As DirectoryChooser
dc.Initialize
dc.InitialDirectory = folder
dc.Title = "Select a Folder"
Dim folder As String
folder = dc.Show(frm)
Return folder
End Sub`
Output Example:
Folder selected:
C:\Users\Robert\AppData\Local\Temp\AndroidEmulator

Changed: , Category: Files, File: T6C193M1396.htm, ID: 1396