D DT1111 Member Licensed User Longtime User Dec 9, 2015 #1 Hi The result from the following code returns the path and the filename (storage/emulated/0/test.txt). Any suggestions how I can obtain just the filename test.txt minus the path? Code: Copy Sub Button1_Click CC.Show("*/*", "Choose a file") End Sub Sub ContentChooser_Result (Success As Boolean, Dir As String, FileName As String) If Success Then Msgbox(FileName, "Result") End If End Sub Thanks.
Hi The result from the following code returns the path and the filename (storage/emulated/0/test.txt). Any suggestions how I can obtain just the filename test.txt minus the path? Code: Copy Sub Button1_Click CC.Show("*/*", "Choose a file") End Sub Sub ContentChooser_Result (Success As Boolean, Dir As String, FileName As String) If Success Then Msgbox(FileName, "Result") End If End Sub Thanks.
LucaMs Expert Licensed User Longtime User Dec 9, 2015 #2 FileName = FileName.SubString(FileName.LastIndexOf("/") + 1) Upvote 0
D DT1111 Member Licensed User Longtime User Dec 10, 2015 #3 Thanks Luca! Do you know if ContentChooser is able to make the File Manager to start looking at a particular folder instead of at the default root directory? Last edited: Dec 10, 2015 Upvote 0
Thanks Luca! Do you know if ContentChooser is able to make the File Manager to start looking at a particular folder instead of at the default root directory?
Erel B4X founder Staff member Licensed User Longtime User Dec 10, 2015 #4 The correct way to get the file system path (if such is available): https://www.b4x.com/android/forum/t...s-returned-from-contentchooser.39313/#content You cannot set the default folder path. Consider using one of the internal file pickers instead. Upvote 0
The correct way to get the file system path (if such is available): https://www.b4x.com/android/forum/t...s-returned-from-contentchooser.39313/#content You cannot set the default folder path. Consider using one of the internal file pickers instead.