Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 35 online users. » 1 Member(s) | 31 Guest(s) Applebot, Bing, Google, MichaelDep
|
Latest Threads |
TCP/IP Socket Programming
Forum: Extensions
Last Post: litdev
Yesterday, 02:49 PM
» Replies: 1
» Views: 28
|
LDCommPort
Forum: Extensions
Last Post: Eddie
Yesterday, 01:22 PM
» Replies: 8
» Views: 79
|
Creation of SB-Neuron. Ou...
Forum: Discussion
Last Post: AbsoluteBeginner
07-09-2025, 07:21 AM
» Replies: 105
» Views: 12,004
|
I finished making my web-...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
07-04-2025, 05:04 PM
» Replies: 0
» Views: 27
|
Diving into Z-S's SB.js w...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-26-2025, 05:23 PM
» Replies: 2
» Views: 100
|
SBJS coming soon
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-25-2025, 01:54 PM
» Replies: 2
» Views: 79
|
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-24-2025, 01:27 PM
» Replies: 0
» Views: 38
|
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: z-s
06-24-2025, 03:46 AM
» Replies: 1
» Views: 48
|
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-23-2025, 09:47 PM
» Replies: 0
» Views: 35
|
Replace Small Basic?
Forum: Discussion
Last Post: z-s
06-23-2025, 09:37 AM
» Replies: 12
» Views: 299
|
|
|
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
*******************************************
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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")
|
|
|
Challenge 12 - Rotating triangle |
Posted by: litdev - 02-17-2025, 09:23 AM - Forum: Challenges
- Replies (9)
|
 |
Create a triangle shape in the center of a GraphicsWindow and rotate it left and right with arrow keys.
This is trickier than you may think NOT using an extension and will need some experimentation to work out the rules for it.
When you get this you could extend to using the line shape to make clock hands.
|
|
|
Chart Doesn't show true values |
Posted by: jrmrhrb00 - 02-15-2025, 11:10 PM - Forum: Extensions
- Replies (6)
|
 |
In the chart function it does not show the true value. It will show a percentage and it graphs the true value, but will not show it. In the snippet if ran you will see what I mean.
Code: Data["2000"]=1
Data["2001"]=2
Data["2002"]=3
Name=LDChart.AddChart(500,400)
LDChart.Legend(Name,1,"Legend_percent","True")
LDChart.Properties(Name,"Column",1)
LDChart.SetData(Name, Data)
It charts the data values 1,2,3 but will not show them. It does show the percentages up to 100%. Would it be possible in SetData to make values as a choice to show? Then it would show the value rather than a percentage?
JR
|
|
|
LDdictionary not working |
Posted by: jrmrhrb00 - 02-10-2025, 11:36 PM - Forum: Discussion
- Replies (32)
|
 |
LitDev,
Did you know that the LDDictionary function isn't working? I found that the regular one in small basic doesn't work any longer and then I tried yours and it doesn't work either.
JR
|
|
|
|