B4J Question Select the directory from the PC

strupp01

Active Member
Licensed User
Longtime User
I would like to browse the directories on my PC (hard disk C: and D :). A directory is to be selected, which is then stored as a working directory in my program.
Is there a library or does someone have a small program?
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Mmmm...

I would do something like this:

B4X:
Dim dirs() as string = array as string("C:/","D:/","E:/") 

For each d as string in dirs
If file.exists(d,"") and file.isdirectory(d,"") then
Log(d & " is usable")
End if 
Next
 
Upvote 0

strupp01

Active Member
Licensed User
Longtime User
No, I mean a listing in a ListView. There I can switch to subdirectories and select a directory, which is then selected as a working directory. So a dialog box.
 
Upvote 0
Top