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!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 847
» Latest member: Jamesbruri
» Forum threads: 224
» Forum posts: 2,286

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 46 Guest(s)
Applebot

Latest Threads
Example Program
Forum: Extensions
Last Post: martmen
03-13-2026, 04:15 PM
» Replies: 0
» Views: 25
BASIC Jam 7 is in progres...
Forum: Discussion
Last Post: eddylo
03-11-2026, 12:40 AM
» Replies: 3
» Views: 113
LitDev extension
Forum: Extensions
Last Post: martmen
02-24-2026, 07:20 AM
» Replies: 2
» Views: 167
Button with icons
Forum: Extensions
Last Post: martmen
02-09-2026, 06:33 PM
» Replies: 6
» Views: 288
How to think correctly?
Forum: Discussion
Last Post: litdev
02-06-2026, 04:20 PM
» Replies: 47
» Views: 17,206
Draw sample
Forum: Extensions
Last Post: martmen
01-29-2026, 06:51 PM
» Replies: 13
» Views: 624
Drawing
Forum: Extensions
Last Post: AbsoluteBeginner
01-29-2026, 10:53 AM
» Replies: 1
» Views: 178
ZScript
Forum: Discussion
Last Post: z-s
01-22-2026, 03:31 AM
» Replies: 0
» Views: 140
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
01-20-2026, 11:02 PM
» Replies: 0
» Views: 118
Small Basic Coder-A New G...
Forum: Discussion
Last Post: AbsoluteBeginner
01-17-2026, 07:57 PM
» Replies: 1
» Views: 512

 
  Bitte mach mit
Posted by: martmen - 04-16-2025, 06:55 PM - Forum: Extensions - No Replies

Bitte mach mit!

Erweitere das Programm KDRP390.000 mit eigenen Beispielen der LitDev Erweiterungen und stelle es allen zur Verfügung.

Vielen Dank
Martin[Anhang=162][Anhang=162][Anhang=162]



Attached Files Thumbnail(s)
   
Print this item

  'LDShapes.ShapeEvent' not found.
Posted by: AbsoluteBeginner - 04-14-2025, 11:08 AM - Forum: Extensions - Replies (3)

Help!  Huh

When trying to run the code from the SB-Prime Editor, the compiler displays a message that it does not find "LDShapes.ShapeEvent".

I updated everything.
This command is visible in both the tooltip and Help in the Editor window. But the compiler refuses to work.

He-e-elp!..  Cry

Print this item

  Small Basic reagiert nicht wie erwartet
Posted by: martmen - 04-13-2025, 07:30 AM - Forum: Discussion - No Replies

Hallo Leute,

Das Beispielprogramm KPLB790.000 zeigt ungewöhnliches Verhalten von Small Basic. Small Basic arbeitet nicht richtig, wenn im Ereignis ButtonClicked die Reaktion des gedrückten Button programmiert wird. Das Programm kann durch ändern der Zeilen 15 und 106 berichtigt werden.

Zur Diskussion stelle ich, ob es ein Fehler ist?
Leider wird Small Basic nicht mehr von Microsoft gewartet.

Ich bin gespannt auf eure Meinung hierzu.

Viele Grüße
Martin

Übersetzung von Capilot:

Hello everyone,
The example program KPLB790.000 exhibits unusual behavior in Small Basic. Small Basic does not function correctly when the reaction of the pressed button is programmed within the ButtonClicked event.
The program can be corrected by modifying lines 15 and 106.
I pose the question for discussion: is this a bug?
Unfortunately, Small Basic is no longer maintained by Microsoft.
I am curious to hear your opinions on this matter.

Best regards
Martin

Komisch bei der Eingabe ist es in der jeweiligen Sprache aber angezeigt wird es bei mir alles in Deutsch :-)
Ich hoffe es kommt bei euch richtig an.

Print this item

  Macht mit
Posted by: martmen - 04-12-2025, 11:22 AM - Forum: Standard Small Basic - Replies (7)

Hallo zusammen,

ich rufe auf das Programm NPSG342.000 zu erweitern. Es sollen nur Small Basic Standard Befehle verwendet werden. Ein bisschen Beispielcode habe ich bereits erstellt.

Jeder kann mitmachen und sein Programm veröffentlichen und hier allen mitteilen.

Viel Erfolg beim Programmieren.

Viele Grüße

*******************************************
2025-04-13 Update: LRWV438.000
*******************************************

Print this item

  Brauche Hilfe beim Warten auf Tastendruck
Posted by: martmen - 04-12-2025, 07:19 AM - Forum: Standard Small Basic - Replies (4)

Hallo zusammen,

ich verstehe es nicht warum es nicht funktioniert. Siehe Programm QGHP600.000. Wenn ich den Button Clock anklicke sollen der Wochentag, das Datum und die Uhrzeit angezeigt werden und auf einen Tastendruck gewartet werden. Das Programm reagiert nicht. Es scheint abzustürzen obwohl weiterhin im Textfenster die Anzeige fortlaufend angezeigt wird.

Kann mir bitte jemand helfen, dass es wie gewollt funktioniert?

Vielen Dank
Martin

Print this item

  LDControls.SetButtonStyle error
Posted by: martmen - 04-04-2025, 10:00 PM - Forum: Extensions - Replies (1)

Hallo LitDev,Martin


schau mal das Programm ZSWC978.000 an. Die Button müssten eigentlich identisch aussehen. Ist aber nicht so. LDControls.SetButtonStyle verändert die Weite des Button. Das sollte nicht so sein oder steckt hier ein Sinn dahinter, den ich noch nicht erkannt habe.

Viele Grüße

Print this item

  Any extension that can do HTTP post requests?
Posted by: Yumda - 04-04-2025, 09:00 AM - Forum: Extensions - Replies (4)

Hi there:

Just want to know if there are extension that can allow small basic to do HTTP post request, specifically with JSON bodies or custom headers?

OR if not, what would be possible work around? ( Hopefully not to complicated...)

Thanks for all the help.

Regards

Yumda

Print this item

  LDDataBase.EditTable(database, table, dataview)
Posted by: martmen - 03-22-2025, 07:44 AM - Forum: Extensions - Replies (19)

Hallo zusammen,
Ich würde gerne mit LDDataBase.EditTable(database, table, dataview) gleich zwei Tabellen gleichzeitig bearbeiten. Ist das möglich?

Print this item

  some help - part one
Posted by: Yumda - 03-21-2025, 07:49 AM - Forum: Standard Small Basic - Replies (7)

Hi there:

Not sure what I am doing wrong, I tried to write a simple cipher program for kids to play. The prime IDE compiled without any problem, but once create the new map and input the text to encrypt, the program terminated without showing the result in text window...  I have created the unique word group it is saved into my P drive.  I will have to post this in multiple parts as it has exceeded the maximum number of characters allowed

Any help would be great.

here are the code:

Code:
' Unified Encryption and Decryption Program for Small Basic
TextWindow.Write("Encrypt (E) or Decrypt (D)? ")
mode = Text.ConvertToLowerCase(TextWindow.Read())

If mode = "e" Then
  Goto encryptMode
ElseIf mode = "d" Then
  Goto decryptMode
Else
  TextWindow.WriteLine("Invalid mode. Use E or D.")
  Program.End()
EndIf

encryptMode:
CRLF = Text.GetCharacter(13) + Text.GetCharacter(10)
spaceReplacement = "空"
usedCombinations = ""

For i = 1 To 26
  alphabet[i] = Text.GetCharacterCode(Text.GetSubText("ABCDEFGHIJKLMNOPQRSTUVWXYZ", i, 1))
EndFor
For i = 27 To 52
  alphabet[i] = Text.GetCharacterCode(Text.GetSubText("abcdefghijklmnopqrstuvwxyz", i - 26, 1))
EndFor

TextWindow.WriteLine("Select cipher session:")
TextWindow.WriteLine("0: Generate new cipher map")

' Example hardcoded list 
sessionList[1] = "p:\cipherwheel\session_maps\letter_map_2025-03-15_10-22-35.map"
sessionList[2] = "p:\cipherwheel\session_maps\letter_map_2025-03-16_11-30-00.map"
sessionList[3] = "p:\cipherwheel\session_maps\letter_map_2025-03-17_14-42-55.map"
sessionList[4] = "p:\cipherwheel\session_maps\letter_map_2025-03-18_16-12-45.map"
sessionList[5] = "p:\cipherwheel\session_maps\letter_map_2025-03-19_18-03-30.map"
sessionList[6] = "p:\cipherwheel\session_maps\letter_map_2025-03-20_09-44-10.map"

For i = 1 To 6
  If sessionList[i] <> "" Then
    TextWindow.WriteLine(i + ": " + sessionList[i])
  EndIf
EndFor
TextWindow.Write("Choicp: ")
choice = TextWindow.ReadNumber()

If choice = 0 Then
  now = Clock.Date + " " + Clock.Time
  newTime = ""
  For i = 1 To Text.GetLength(now)
    ch = Text.GetSubText(now, i, 1)
    If ch = "/" Or ch = ":" Then
      newTime = newTime + "-"
    ElseIf ch = " " Then
      newTime = newTime + "_"
    Else
      newTime = newTime + ch
    EndIf
  EndFor
  now = newTime
  sessionMapPath = "p:\cipherwheel\session_maps\letter_map_" + now + ".map"
  File.WriteContents("p:\cipherwheel\last_session.txt", sessionMapPath)
  File.DeleteFile("p:\cipherwheel\letter.map")

Print this item

  LitDev Extension version 1.2.30.0
Posted by: litdev - 03-02-2025, 05:46 PM - Forum: Extensions - Replies (5)

Combined changes to new version.

   

Print this item