Find, functions to find and select files or folders

Post Reply
User avatar
Dutchman
Posts: 925
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Find, functions to find and select files or folders

Post by Dutchman » Tue Sep 06, 2016 9:27 pm

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 723 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 723 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 73 times
We consider it a refreshing mental exercise to figure out ways to circumvent foolishness (Quote from Richard)

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

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

Post by GeorgeMcGinn » Fri Sep 30, 2016 8:39 pm

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.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
Dutchman
Posts: 925
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

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

Post by Dutchman » Sat Oct 01, 2016 9:44 am

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.
We consider it a refreshing mental exercise to figure out ways to circumvent foolishness (Quote from Richard)

User avatar
rbytes
Posts: 1963
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone X
iPad 4
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

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

Post by rbytes » Sat Oct 01, 2016 3:01 pm

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.
Zzzzz

Post Reply