Page 1 of 1

Find, functions to find and select files or folders

Posted: Tue Sep 06, 2016 9:27 pm
by Dutchman
For Launcher I needed a selection mode, so that files and folders could be accessed which are not coupled to a button in the Launcher.
For that purpose I made a set of functions by which files and folders can be accessed fast and then run or viewed.
The following screenshot is from a test-program. The text shows clearly that you can find your way down and up in the tree.
Screenshot of 'Find test.sb' in test-mode.
Screenshot of 'Find test.sb' in test-mode.
Find 1.PNG (102.86 KiB) Viewed 2690 times
To make its usage more flexible, the number of buttons can be changed rather easy, which is shown in the test-program "Find test.sb".
In the test-program only the "Quit"-button is active so that you can step through several configurations.
You can also use it with a single list, e.g. if a file should be selected in a folder without the need to change the folder.
The following screenshots show application on simulated iPhone-size. It also shows that size can be adapted to your wishes.
'Find'-page on iPhone-size
'Find'-page on iPhone-size
Find 2.PNG (79.31 KiB) Viewed 2690 times
An update of Launcher, with this facility integrated, is coming soon.
The test-program, inclusive the Find-functions, is attached as zip-file.
Find test.sb.zip
(4.53 KiB) Downloaded 294 times

Re: Find, functions to find and select files or folders

Posted: Fri Sep 30, 2016 8:39 pm
by GeorgeMcGinn
This sounds great.

So will I be able to load images into the Smart Basic App?

I can move data and code by COPY/PASTE, but I am having issues in copying the other files I need, like logos, backgrounds, etc.

George.

Re: Find, functions to find and select files or folders

Posted: Sat Oct 01, 2016 9:44 am
by Dutchman
From your question it appears that you do not have experience on programming in SB. It is best to first become familiar with the opportunities offered by SB.

Re: Find, functions to find and select files or folders

Posted: Sat Oct 01, 2016 3:01 pm
by rbytes
You can learn a lot by downloading code from the Forum and examining it. There are also some excellent code samples in the Examples folder.

You said that you now have the Dropbox feature working. That is the best way to bring media files into your smart Basic programs.