Find, functions to find and select files or folders

Post Reply
User avatar
Dutchman
Posts: 851
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 »

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 2703 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 2703 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

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

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

Post 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.
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)

User avatar
Dutchman
Posts: 851
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 »

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.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
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 »

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.
The only thing that gets me down is gravity...

Post Reply