| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 32 online users. » 1 Member(s) | 29 Guest(s) Applebot, Bing, KennethFem
|
| Latest Threads |
ZScript
Forum: Discussion
Last Post: z-s
Yesterday, 03:31 AM
» Replies: 0
» Views: 24
|
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
01-20-2026, 11:02 PM
» Replies: 0
» Views: 21
|
Small Basic Coder-A New G...
Forum: Discussion
Last Post: AbsoluteBeginner
01-17-2026, 07:57 PM
» Replies: 1
» Views: 416
|
ZS Small Basic Coder GPT.
Forum: Discussion
Last Post: z-s
01-13-2026, 03:32 AM
» Replies: 4
» Views: 132
|
3D maze in browser contro...
Forum: Discussion
Last Post: stevantosic
01-08-2026, 12:51 PM
» Replies: 128
» Views: 33,306
|
ZS Extension.
Forum: Extensions
Last Post: AbsoluteBeginner
01-04-2026, 02:50 PM
» Replies: 109
» Views: 28,280
|
Happy New Year!
Forum: Discussion
Last Post: AbsoluteBeginner
12-31-2025, 10:08 AM
» Replies: 0
» Views: 71
|
Six different 8-bit emula...
Forum: Discussion
Last Post: stevantosic
12-28-2025, 06:02 PM
» Replies: 2
» Views: 87
|
Challenge-Command Line GW
Forum: Challenges
Last Post: WhTurner
12-22-2025, 06:24 PM
» Replies: 7
» Views: 2,263
|
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: z-s
12-17-2025, 09:09 AM
» Replies: 1
» Views: 337
|
|
|
| Sudoku Solver Published No.:XZXJ94.000 |
|
Posted by: The Old Guy - 08-30-2025, 06:06 AM - Forum: Standard Small Basic
- Replies (7)
|
 |
Hello, I am 'The Old Guy'. I am not new to Small Basic and I am definitely not a guru.
I have a liking for Sudoku and was searching the net for a listing in Small basic to solve Sudoku using a backtracking algorithm.
Having not found one I decided to compile my own.
I am aware there are a lot of solvers available to not require another adaptation to get the job done but once my curiosity was
aroused the bee in my bonnet would let me put it down.
If the members of this forum are also curious enough to take an interest, I would be happy to take comment or criticism.
Thank you.
|
|
|
| Small Basic Coder-A New Gem |
|
Posted by: z-s - 08-18-2025, 06:58 AM - Forum: Discussion
- Replies (1)
|
 |
As Soon as Googles Gemini introduced Custom gems in which we cant give 10 knowledge files and some instruction i made a Gem for small basic i gave him Small basic introduction pdf and LD Physics Pdf and a Pdf Containing all Extension Api (made using one of litdev tool) and i gave All Extension Xml in the form of txt.
It is Doing Well And Working 
You can see here about what it made : https://g.co/gemini/share/7f0fb52cd0da
Currently Gemini's Gem cant be shared so that others can use but you can create your own Small Basic Coder.
If you want to make your own first open your Gemini it is available with a google account in the left panel go to Explore Gems and there click on New Gem In it name it the put this in instructions:
Code: You are a coder who solve any problems or give code in Microsoft Small basic Programing Language by using you knowledge.
If Code is too long to send in one message you give it to the user in segments.
I Have added a small basic tutorial pdf to your knowledge learn from it how to do coding in small basic.
and i have added smallbasiclibray which is standard library of small basic api and xml file to learn from it.
and i have added all small basic extension Api pdf and also their XML in txt format learn from them how to use extension.
in the XML files P: means property M: means method and T: means object and E: means event which can be added to sub.
Note Always Use: Extension Where Possible if something is not in standard Small Basic Library.
All Variables are Global.
In small basic there are no like sub functions cant have arguments and return but you can use variables or LDCall or ZSCall.
You Cant use like this in small basic code:
Sub Write(arg)
TextWindow.Write(arg)
EndSub
Sub Write("Hii")
But you can do this in code :
arg_write = ""
Sub Write()
TextWindow.Write(arg_write)
EndSub
arg_write = "Hii"
Write()
All Extensions Object are also global you don't have to use ZS.ZSText or Litdev.LDCall use directly ZSText and LDCall.
Don't make method or Object with your own mind before using first see if the object have that method or property or event using the API and Xml give to you in knowledge.
Extract and upload This Files In Knowledge: https://www.transfernow.net/dl/20250818C2O7KDmD
|
|
|
| Modbus extension |
|
Posted by: letsrock - 08-17-2025, 02:52 PM - Forum: Extensions
- Replies (14)
|
 |
Hey there,
I am looking for a way to communicate with the photovoltaic system on my roof via modbus with SmallBasic. Any ideas?
|
|
|
| Challenge 13 - Search utility |
|
Posted by: litdev - 08-11-2025, 08:33 AM - Forum: Challenges
- Replies (8)
|
 |
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...
|
|
|
| Question about a program |
|
Posted by: Eddie - 07-17-2025, 04:32 PM - Forum: Standard Small Basic
- Replies (4)
|
 |
Hallo, ich habe ein Programm unter der QCBN-Nummer 365.000 veröffentlicht. Das Programm soll zur Steuerung meiner Modellbahn dienen. Beim Start öffnet sich ein grafisches Fenster mit Schaltflächen und einem Gleisplan mit Linien. Alles funktioniert. Klickt man auf die grünen Kreise, bewegt sich eine Linie, die eine Weiche darstellen soll. Nun zum Problem: Stellt man die Weiche per Mausklick, ist alles in Ordnung. Der Befehl wird an die DCC-EX-Zentrale gesendet und die Weiche auf der Anlage schaltet ebenfalls. Drückt man die Schaltfläche Fahrstraße A, werden die Befehle auch korrekt gesendet. Was jedoch nicht schaltet, sind die Weichen in meinem Gleisplan. Meine Idee war, das Textfeld tb1 auszulesen. Dort wird die Rückmeldung der Zentrale angezeigt. Leider ist mir das bisher nicht gelungen. Hat jemand eine Idee?
|
|
|
| TCP/IP Socket Programming |
|
Posted by: Juergen - 07-14-2025, 08:35 AM - Forum: Extensions
- Replies (23)
|
 |
Hello, i want to program a TCP/IP Socket to establish an ethernet communication, just to transmit some values over ethernet.
I look for some example codes or API or libraries in litdev.
Who can give me a hint ?
|
|
|
| LDCommPort |
|
Posted by: Eddie - 07-13-2025, 05:56 AM - Forum: Extensions
- Replies (8)
|
 |
Hallo zusammen, ich versuche gerade, mit SB eine Steuerung für meine Modelleisenbahn zu schreiben. Dabei bin ich auf ein Problem gestoßen, das ich nicht lösen kann. Ich habe folgenden Code zur Steuerung der Lokomotiven erstellt.
lokAdresseTB = Controls.AddTextBox(20,930)
Controls.SetTextBoxText(lokAdresseTB, "3")
lokSlider = LDControls.AddSlider(150.930.200)
LDControls.SetSliderRange(lokSlider,0,126)
LDControls.SetSliderValue(lokSlider,0)
LokVorBTN = Controls.AddButton("▶️ Vorwärts",380,930)
LokZurBTN = Controls.AddButton("◀️ Rückwärts",450,930)
LokStopBTN = Controls.AddButton("⏹️ Halt",520,930)
Sub-LokSteuerung
adresse = Controls.GetTextBoxText(lokAdresseTB)
geschw = LDControls.GetSliderValue(lokSlider)
Wenn Controls.LastClickedButton = LokVorBTN, dann
LDCommPort.TXString("<t " + adresse + geschw +"1 ">")
EndIf
Wenn Controls.LastClickedButton = LokZurBTN, dann
LDCommPort.TXString("<t " + adresse + geschw + "0 ">")
EndIf
Wenn Controls.LastClickedButton = LokStopBTN, dann
LDCommPort.TXString("<t " + adresse + " 1 0>")
EndIf
EndSub
Das Problem liegt in dieser Zeile: LDCommPort.TXString("<t " + address + speed +"1 ">"). Hier behauptet SB, ich hätte drei Argumente angegeben, obwohl nur eines benötigt wird. Hat jemand eine Idee, wie man das anders schreiben könnte?
Der Befehl, der an die DCC-EX-Zentrale gesendet werden muss, sieht folgendermaßen aus: <t 3 50 1> Das t steht für die anzusprechende Lokomotive; die 3 ist die DCC-Adresse, die 50 die Geschwindigkeit und die 1 die Richtung.
Viele Grüße, Eddie
|
|
|
|