Jim Brown Active Member Licensed User Longtime User Nov 24, 2013 #1 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: Code: 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: Nov 24, 2013
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: Code: 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.
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2013 #2 1. Starting from the next beta the file chooser will start from the previously chosen folder (unless you override it by setting InitializeDirectory). 2. DirectoryChooser will be available in the next beta.
1. Starting from the next beta the file chooser will start from the previously chosen folder (unless you override it by setting InitializeDirectory). 2. DirectoryChooser will be available in the next beta.
Swissmade Well-Known Member Licensed User Longtime User Jan 24, 2014 #3 Hi Erel, Is the DirectoryChooser available yet??
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2014 #4 Yes. Note that you can see it in the IDE: Or here: http://www.b4x.com/b4j/documentation.html
Swissmade Well-Known Member Licensed User Longtime User Jan 24, 2014 #5 Very Nice Erel, Thanks for this