R RobyRoby New Member Jan 18, 2019 #1 hello, Is there any way to choose a file and get the directory in b4j ? For example, if we click the browse button and then open the window to choose a file. Thanks
hello, Is there any way to choose a file and get the directory in b4j ? For example, if we click the browse button and then open the window to choose a file. Thanks
PatrikCavina Active Member Licensed User Longtime User Jan 18, 2019 #2 Check FileUtils, method ChooseFile or alternatively B4X: Dim fc As FileChooser fc.Initialize Dim path As String = fc.ShowOpen(frm) Dim directory As String = File.GetFileParent(path) Dim fileName As String = File.GetName(path) Last edited: Jan 18, 2019 Upvote 0
Check FileUtils, method ChooseFile or alternatively B4X: Dim fc As FileChooser fc.Initialize Dim path As String = fc.ShowOpen(frm) Dim directory As String = File.GetFileParent(path) Dim fileName As String = File.GetName(path)
R RobyRoby New Member Jan 18, 2019 #3 PatrikCavina said: Check FileUtils, method ChooseFile or alternatively B4X: Dim fc As FileChooser fc.Initialize Dim path As String = fc.ShowOpen(Frm) Click to expand... Thanks PatrikCavina, Solved Upvote 0
PatrikCavina said: Check FileUtils, method ChooseFile or alternatively B4X: Dim fc As FileChooser fc.Initialize Dim path As String = fc.ShowOpen(Frm) Click to expand... Thanks PatrikCavina, Solved