A Asmoro Active Member Licensed User Longtime User Oct 24, 2011 #1 Hi all, I want to save a .jpg with a filename that comes directly from results or values, displayed on label views or spinners. The target is to find a jpg file on a sdcard by using a searchbox and gets the result on a listview or scrollview. I wonder if this possible and if so, what kind of code or example is the best way to achieve. Thanks for now. Asmoro
Hi all, I want to save a .jpg with a filename that comes directly from results or values, displayed on label views or spinners. The target is to find a jpg file on a sdcard by using a searchbox and gets the result on a listview or scrollview. I wonder if this possible and if so, what kind of code or example is the best way to achieve. Thanks for now. Asmoro
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2011 #2 Do you want to show existing files or save a new file? Upvote 0
A Asmoro Active Member Licensed User Longtime User Oct 24, 2011 #3 Hi Erel, Both, first save a new file and afterwards showing that same file to a list or scrollview. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2011 #4 When you save a file you specify its name. You can use any valid string as the name. For example: B4X: Dim s As String s = EditText.Text & ".png" You can use File.ListFiles to get a list with all files in a specific folder. Upvote 0
When you save a file you specify its name. You can use any valid string as the name. For example: B4X: Dim s As String s = EditText.Text & ".png" You can use File.ListFiles to get a list with all files in a specific folder.
A Asmoro Active Member Licensed User Longtime User Oct 25, 2011 #5 Thanks Erel for your help. I'm gonna play around with the code and check the docu about File.ListFiles. Upvote 0
Thanks Erel for your help. I'm gonna play around with the code and check the docu about File.ListFiles.