| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 249 online users. » 0 Member(s) | 247 Guest(s) Bing, Google
|
| Latest Threads |
Challenge 14 - Rainbow
Forum: Challenges
Last Post: tiagomoreira41
10-07-2026, 12:51 AM
» Replies: 6
» Views: 2,032
|
Use second screen by smal...
Forum: Extensions
Last Post: litdev
09-05-2026, 08:11 PM
» Replies: 2
» Views: 252
|
Small Basic as the "LEGO ...
Forum: Discussion
Last Post: litdev
08-17-2026, 11:06 AM
» Replies: 5
» Views: 487
|
I never thought this woul...
Forum: Discussion
Last Post: litdev
07-10-2026, 10:18 AM
» Replies: 1
» Views: 248
|
ListView issues by use LD...
Forum: Extensions
Last Post: martmen
06-11-2026, 09:46 AM
» Replies: 6
» Views: 857
|
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
04-24-2026, 12:54 AM
» Replies: 2
» Views: 810
|
D'ont read a file
Forum: Standard Small Basic
Last Post: WhTurner
04-12-2026, 03:39 PM
» Replies: 1
» Views: 446
|
close a file
Forum: Standard Small Basic
Last Post: francesco
04-12-2026, 08:59 AM
» Replies: 2
» Views: 596
|
random in a array
Forum: Standard Small Basic
Last Post: francesco
04-05-2026, 06:40 PM
» Replies: 4
» Views: 1,002
|
Sqlite Version
Forum: Extensions
Last Post: Lester
03-24-2026, 06:58 PM
» Replies: 3
» Views: 786
|
|
|
| Small Basic CMD simulator |
|
Posted by: sm4llprogrammer2008 - 04-19-2025, 05:21 PM - Forum: Standard Small Basic
- No Replies
|
 |
Finally,
After publishing my Bash simulator, I've tried to expand it's very basic code.
ID: ZVVD6.000
Link: https://smallbasic.com/program/?ZVVD6.000
Code: TextWindow.Hide()
TextWindow.Title = "Windows Command Prompt"
year = Clock.Year
path = "C:\Windows\System32"
helpInfoTxt[1] = "== HELP =="
helpInfoTxt[2] = "dir <path> - Lists files from a path."
helpInfoTxt[3] = "echo <text> - Writes line to the prompt."
helpInfoTxt[4] = "cd <path> - Enters a path."
helpInfoTxt[5] = "help - Shows this text."
TextWindow.Show()
TextWindow.ForegroundColor = "White"
TextWindow.WriteLine("Copyright "+year+" sm4llprogrammer2008")
While ("True")
TextWindow.ForegroundColor = "White"
TextWindow.Write(path+">> ")
TextWindow.ForegroundColor = "Gray"
prompt = TextWindow.Read()
EventHandler()
EndWhile
Sub EventHandler 'We'll return events based on input (variable: prompt)
getting = LDText.Split(prompt, " ") 'Split text
If getting[1] = "dir" Then 'Event handler for dir
getpath = getting[2]
If Text.GetIndexOf(getpath, "C:\") = 1 Then
files = File.GetFiles(getpath) 'Get files
For i = 1 To Array.GetItemCount(files) 'List all files from the directory input by the user
TextWindow.WriteLine(files[i])
EndFor
Else 'If no path is typed or none
TextWindow.WriteLine("Invalid path. Use a valid directory starting with C:\")
EndIf
ElseIf getting[1] = "cd" Then 'Event handler for cd
getpath = getting[2]
If Text.GetIndexOf(getpath, "C:\") = 1 Then
path = getpath
Else
TextWindow.WriteLine("Invalid path. Use a valid directory starting with C:\")
EndIf
ElseIf getting[1] = "echo" Then
returning = Text.GetSubText(prompt, Text.GetIndexOf(prompt, "echo") + 5, Text.GetLength(prompt) - Text.GetIndexOf(prompt, "echo") - 4)
TextWindow.WriteLine(returning)
ElseIf getting[1] = "help" Then
For i = 1 To Array.GetItemCount(helpInfoTxt)
TextWindow.WriteLine(helpInfoTxt[i])
EndFor
Else
TextWindow.WriteLine("Unknown command. Type 'help' for info.")
EndIf
EndSub
Feel free to expand!
Edit: requires LitDev Beta library!
|
|
|
| Small Basic bash simulator |
|
Posted by: sm4llprogrammer2008 - 04-19-2025, 04:21 PM - Forum: Standard Small Basic
- No Replies
|
 |
I've made a bash simulator.
Doesn't have cmdlets, but you can try expanding it!
Link: https://smallbasic.com/program/?XSLJ618.000
ID (to use on SB 1.2 when importing from web): XSLJ618.000
Code: TextWindow.Hide()
TextWindow.Title = "Small Bash"
While ("True")
TextWindow.ForegroundColor = "Green"
TextWindow.Write("\users\")
TextWindow.ForegroundColor = "Blue"
TextWindow.Write("~$ ")
TextWindow.ForegroundColor = "DarkGray"
prompt = TextWindow.Read()
EndWhile
TextWindow.Show()
It isn't quite compatible with Small Basic Online though.
|
|
|
| Writing extensions - ? |
|
Posted by: Yumda - 04-19-2025, 08:00 AM - Forum: Extensions
- Replies (6)
|
 |
Hi there:
Is there an updated guide for writing SB extension? My son knows abit of C#, and when we follow the instruction guide on how to write extension for SB using visual c# 2010 the message keeps on popping up that the .net fram work we are targeting is 3.5 but the smallbasic .DLL reference is for .NET 4.5 . Is there any new tutorial available or what people is using to write the extension?
Regards
YUMDA
|
|
|
| LDProcess und Datenbankprogramm Adressen |
|
Posted by: martmen - 04-18-2025, 11:19 PM - Forum: Extensions
- Replies (1)
|
 |
Hallo Leute,
habt ihr die LitDev Erweiterung in SB implementiert könnt ihr folgendes machen:
Das Programm LHSZ447.000 (als Menu.sb speichern) und CDGT638.000 (als Adressen.sb speichern) in einem Unterordner z.B. .. /Database Programm und Daten.
Ändert in den Programmen die Path-Angaben. Startet die Programme einmal. Dann könnt Ihr das Programm Menu.exe starten.
Wählt im Menü den Eintrag Adresse aus und es wird Adressen gestartet. Zum Menu kommt Ihr wenn Ihr im Programm Adressen den Button End anklickt.
So ist es möglich, eine Kette von Programmen hin und her aufzurufen.
Das Programm Adressen arbeitet mit einer Tabelle der Datenbank. Um eine andere Tabelle in einem neuen Programm zu bearbeiten, sind nur wenige Zeilen anzupassen.
Viel Spass beim ausprobieren
Martini
|
|
|
| Is Extension Manager gone? |
|
Posted by: sm4llprogrammer2008 - 04-18-2025, 08:52 PM - Forum: Extensions
- Replies (2)
|
 |
Hello, everyone.
I'm new to the forums, and I've been looking for archived versions of LitDev's Small Basic Extension Manager, tried to find TechNet downloads, but unfortunately found none.
Are there GitHub repos of Extension Manager or is it fully obsolete?
If someone has an answer, I'd be happy to know!
Best regards,
sm4llprogrammer2008
|
|
|
| LDFinances Programm |
|
Posted by: martmen - 04-18-2025, 11:54 AM - Forum: Extensions
- No Replies
|
 |
Hallo zusammen,
gibt es jemanden, der ein lauffähiges Programm mit LDFinances verwendet? Ich habe zwar einen Schlüssel, aber das alte Beispiel läuft bei mir nicht. Kann jemand ein lauffähiges Programm veröffentlichen und den Key hier veröffentlichen?
Besten Dank
Martin
|
|
|
| Need some help with multiple window in program |
|
Posted by: Yumda - 04-17-2025, 05:04 PM - Forum: Extensions
- Replies (7)
|
 |
Hi there:
I tried to write a program for work to act as a data base recording and search system. In the section where a patient information is displayed, when the "HOME" button is clicked , it will disable the "NEW SEARCH", or "BACK TO YEAR" button. Also, is there anyway to close a window created by ldwindow ? I want the window where the home button is displayed gets closed when the button is clicked.
I have published the program, the code for the program is FDQZ538.000
Any help or advice is greatly appreicated.
Regards
YUMDA
|
|
|
|