We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge 13 - Search utility
#1
No activity for a while, so here is a challenge...

Write a Small Basic utility program to search through a folder of SB files (*.sb) and show any files that contain a searched text.

The program should allow the user to specify a folder and a search text (case insensitive), then display a list of all files containing that text.

The program could be extended to:

1] Allow the user to select and show the full text of any of the found searches
2] Allow recursive search through sub folders
3] Use extensions if you like to make the program prettier or add features like compile and run a file or open it in Small Basic IDE
4] Think of other useful features, like reporting the file date, number of lines etc and maybe make these search filters

Share any work in progress...
[-] The following 1 user Likes litdev's post:
  • z-s
Reply
#2
(translated by Google translator)

This task does not look like a simple toy.  Cool

This assignment already looks like a "term paper" that the student was told to complete.  Big Grin

I wonder who can complete this task.
Reply
#3
(translated by Google translator)

Hi all.  Shy

I noticed another interesting opportunity that this task provides for Small Basic fans.

Previously, such a task would have been very difficult for most newbies in programming.
For example, I would not dare to start working on such a program.
But now is the century of development of Artificial Intelligence. The task offered by LitDev gives beginners the opportunity to try WRITING SUCH A COMPLEX PROGRAM using the help of AI.

This is exactly what I want to do now.
I want to explore how cool a program I can create now that I have AI help.  Rolleyes
Reply
#4
Gpt 5 is released more trained model.
ZS
Reply
#5
I didn't realise this would be a bit tricky.  This is my effort BVWL530.000.  I tried to show some other useful ideas like dynamic control positioning with window resize, button toggle, saving session data and what I think is a good structure for interactive window program, all in standard Small Basic.  

Good luck with AI - personally I find it less than useful, but maybe I'm too old and haven't worked hard enough with it.
[-] The following 3 users Like litdev's post:
  • AbsoluteBeginner, Scout, z-s
Reply
#6
Hello everyone.  Shy

The process of me completing this challenge is developing in an interesting way.
The AI Qwen3-Coder that I chose to complete the challenge told me that it doesn't know the Microsoft Small Basic programming language at all.  Huh
Now I have to first teach the AI how to use Small Basic, so that the AI can then write a program for me.

The challenge has become even more interesting.
Reply
#7
What Small Basic Coder Made : https://g.co/gemini/share/f9262e7dd222
Need some corrections in the code.
ZS
[-] The following 1 user Likes z-s's post:
  • AbsoluteBeginner
Reply
#8
Hi all.  Shy

I want to save all the necessary files that contain reference information in a special folder on my computer.
Then I will create a small script for the autoclicker program, which will allow the AI to independently download files from my computer that it will need for "thinking".
I will do this because my AI claims that it does not have free access to the internet.

In addition, the autoclicker program will allow the AI to save on my computer the information that the AI considers necessary and that it cannot save in its system.

When everything is ready, I will inform the AI that it can begin its autonomous work.

I'm curious to know what the outcome of this challenge will be.  Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)