Overview
Previous  Next

The OpenDialogEx control enhances the regular OpenDialog control.
It allows you to set the initial directory and it allows the user to choose more than one file.

Example:
'odEX is an OpenDialogEx object.
Sub Globals
      Dim files(0) 'Creates an empty array that will be later filled.
End Sub

Sub App_Start
      Form1.Show
      odEX.New1
      odEX.MultiSelect = True
      odEX.InitialDirectory = "%USERPROFILE%\My Documents"
      odEX.Filter = "Word Files|*.doc"
      odEX.Title = "Choose your files"
      If odEX.Show <> cCancel Then 'Make sure the user didn't press the Cancel button.
            files() = odEX.GetFiles
            For i = 0 To ArrayLen(files())-1
                  Msgbox(files(i))
            Next
      End If
End Sub