| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 33 online users. » 1 Member(s) | 30 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
|
|
|
| Threads |
|
Posted by: jrmrhrb00 - 11-24-2024, 10:46 PM - Forum: Standard Small Basic
- Replies (19)
|
 |
If i have a program and call a subroutine in that program from the UI thread, will it still be on the UI thread or does it run on a different thread?
JR
|
|
|
| Small Basic 1.2 |
|
Posted by: jrmrhrb00 - 11-23-2024, 12:26 AM - Forum: Standard Small Basic
- No Replies
|
 |
I was doing a little research on small basic. Level 1.2 was released on Oct. 1, 2015. Small Basic was actually an idea way back in 2008. That is when Microsoft started developing it. To see how I figured this out in your url type "Way Back Machine". It will load a web page. Then click on Wayback Machine again. It loads a new page and from it, it wants you to enter a url. Type in Smallbasic.com.at the top of that it shows a calendar. The first entries for the calendar start in 2008.
If you select one of the entries in the calendar it will bring up a smallbasic.com webpage. Look at that page and find where it says "need help". Click on that and it takes you into the old forum. Some of the links work in the forum and some don't. It depends on if it was archived. So, we can get into some parts of the old forum through the "Way Back Machine"! The "Way Back Machine" is basically an archive of what was on the internet at that point in time. Not everything was archived, but a lot of it was.
JR
|
|
|
| SB.js |
|
Posted by: z-s - 11-22-2024, 05:51 AM - Forum: Discussion
- Replies (6)
|
 |
this is work in progress for SB.js for executing the sb on browser.
put your sb code in the div section:
PHP Code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SB.js Executor</title> </head> <body> <h1>SB.js Executor</h1>
<!-- Small Basic code goes here --> <div class="SB"> x = 2 ar_ind = 1 y = 3 * x TextWindow.WriteLine(y) hello[ar_ind] = "hii" TextWindow.WriteLine(hello[1]) </div>
<script> arrays = [] // Run the SB code when the page loads window.onload = runSBCode;
// Main execution function function runSBCode() { // Extract code from the div with class "SB" const codeDiv = document.querySelector(".SB"); const code = codeDiv.textContent.trim().split("\n").map(line => line.trim()); // Split by newline const arrayRegex = /([a-zA-Z_][a-zA-Z0-9_]*)\[\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\]/;
code.forEach(line => { if (line) {
const arrayMatch = line.match(arrayRegex); if (arrayMatch) { const arrayName = arrayMatch[1]; // Extract array name if (!arrays.includes(arrayName)) { eval(`${arrayName} = []`); // Initialize the array arrays.push(arrayName); // Store the array name } }
// Check if the line is a TextWindow.WriteLine command if (line.startsWith("TextWindow.WriteLine")) { // Extract the content within the parentheses const match = line.match(/TextWindow\.WriteLine\((.*)\)/); if (match) { const content = match[1].trim(); // Replace TextWindow.WriteLine with console.log const jsCode = `console.log(${content})`; eval(jsCode); // Execute the JavaScript code } } else { // If it's just a normal SB code line, try to eval it directly try { eval(line); // Execute the Small Basic line as JavaScript } catch (e) { console.log(`Error in executing: ${line} - ${e.message}`); } } } }); } </script> </body> </html>
and see the result in console but only array ,variables and TextWindow.WriteLine() is currently working nothing else.
good ui and more coming soon.
|
|
|
| LDArray extension |
|
Posted by: Yumda - 11-17-2024, 10:05 PM - Forum: Extensions
- Replies (17)
|
 |
Hi All...
This may seem like a dumb question... but
Having trouble understanding how to use the LDarray extension. There is no examples, do you think you can give me some example?
I am having trouble to even create one using the ldarray extension, normal Sb array is fine, but just don't seem to get ldarray to work.
Thanks you all for helping and your time in advance.
Regards
|
|
|
| Challenge 9 - Quick sort |
|
Posted by: litdev - 10-28-2024, 08:41 AM - Forum: Challenges
- Replies (54)
|
 |
Implement quicksort algorithm and sort 1000 random numbers.
Interesting to see if it's easier the usual way understanding the algorithm and writing the code or getting AI to do it for you?
|
|
|
| Challenge 8 - Drag n Drop |
|
Posted by: litdev - 10-20-2024, 12:19 PM - Forum: Challenges
- Replies (7)
|
 |
Make a Drag and Drop feature using the Mouse buttons to position a GraphicsWindow shape (Rectangle).
Extend it to rotate the shape when Shift key is down.
|
|
|
|