Wish FileChooser - Additional options *DONE

Jim Brown

Active Member
Licensed User
Longtime User
Hi Erel,

Wish1) .LastDirectory
FileChooser has .InitialDirectory to set/get the starting directory.
However, I would also need something like .LastDirectory which returns the directory navigated to when the user has choosen their file. Example:

B4X:
fc.Initialize
fc.Title="Choose image"
fc.InitialDirectory=lastimagefolder
fc.SetExtensionFilter("Image",Array As String("*.jpg","*jpeg","*.png","*.bmp"))
Dim thisFile As String
thisFile=fc.ShowOpen(MainForm)
lastimagefolder=fc.LastDirectory

Wish2) FolderChooser
Basically a folder version of FileChooser, so that we can choose a folder location rather than files.
 
Last edited:

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi Erel,

Is the DirectoryChooser available yet??
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes. Note that you can see it in the IDE:

SS-2014-01-24_12.27.08.png


Or here: http://www.b4x.com/b4j/documentation.html
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Very Nice Erel,
Thanks for this:):):):):):)
 
Top