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: 139
» Latest member: MarekaMl5375
» Forum threads: 135
» Forum posts: 1,552

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 27 Guest(s)
Bing

Latest Threads
Challenge 11 - Hourglass
Forum: Challenges
Last Post: AbsoluteBeginner
12-19-2024, 05:57 PM
» Replies: 3
» Views: 55
SB.js
Forum: Discussion
Last Post: litdev
12-16-2024, 07:56 AM
» Replies: 6
» Views: 282
Spam
Forum: Discussion
Last Post: z-s
12-12-2024, 04:20 PM
» Replies: 1
» Views: 92
Small Basic Program Conve...
Forum: Discussion
Last Post: AbsoluteBeginner
12-11-2024, 01:23 PM
» Replies: 9
» Views: 219
Getting this error messag...
Forum: Extensions
Last Post: Yumda
12-09-2024, 12:34 PM
» Replies: 4
» Views: 120
Missing .jpg files
Forum: Discussion
Last Post: jrmrhrb00
12-07-2024, 02:53 PM
» Replies: 2
» Views: 79
Crowd marketing - Could ...
Forum: Discussion
Last Post: AbsoluteBeginner
12-07-2024, 11:36 AM
» Replies: 1
» Views: 53
Callenge 10 - Lissajous
Forum: Challenges
Last Post: AbsoluteBeginner
12-05-2024, 06:00 PM
» Replies: 4
» Views: 144
Threads
Forum: Standard Small Basic
Last Post: jrmrhrb00
12-02-2024, 11:22 PM
» Replies: 19
» Views: 565
Welcome
Forum: Standard Small Basic
Last Post: AbsoluteBeginner
11-30-2024, 05:25 PM
» Replies: 13
» Views: 2,020

 
  Challenge 11 - Hourglass
Posted by: litdev - 12-19-2024, 11:21 AM - Forum: Challenges - Replies (3)

Use standard Small Basic to make an animation of an hourglass (egg timer). 

Something on the lines of this:

https://cdn.dribbble.com/users/11609495/...rglass.gif

Print this item

  Spam
Posted by: litdev - 12-09-2024, 11:43 PM - Forum: Discussion - Replies (1)

Many thanks to moderators who ban and delete spam.

Print this item

  Small Basic Program Conversion to C#
Posted by: jrmrhrb00 - 12-09-2024, 01:05 PM - Forum: Discussion - Replies (9)

What can a person do when they have a small basic program that they want to convert to c# and the conversion comes up with a bunch of error messages that you don't understand that originates from visual studio. The program runs fine in small basic. The problems occur after conversion. This is an issue with visual studio. It generally gives potential fixes that never work and the explanation of what is wrong is way beyond my comprehension.

Most of the time I end up just leaving the running program in small basic and give up on converting to c#. I know that is not the ideal way of doing it, but what else can a person do?

JR

Print this item

  Getting this error message on extension manager
Posted by: Yumda - 12-08-2024, 09:30 AM - Forum: Extensions - Replies (4)

Hi there:

While updating SB prime extension using the extension manager I have been getting the message and only happen when I try to update litdev extension.

Does anyone has any ideas?

error message: 

"Extension version incorrect: 1.2.29.11 (Database), 1.2.29.12 (Downloaded)

Do you wish to continue?"

upon selecting yes, nothing happened.

Would welcome any input.

Regards

Print this item

  Missing .jpg files
Posted by: jrmrhrb00 - 12-07-2024, 01:08 PM - Forum: Discussion - Replies (2)

In the article for how to Graduate to c#. It mentions 3 .jpg files. I can't find them.

Stones.jpg
Walls.jpg
Water.jpg

I assume they're on the forum somewhere, but I don't have a clue as to where.

JR

In m

Print this item

  Crowd marketing - Could you help figure this out?
Posted by: NatashaRostovskaya - 12-07-2024, 10:38 AM - Forum: Discussion - Replies (1)

Sorry for being a bit off-topic. Can you clarify? How does crowd marketing work, and can you provide an example? Also, is there any useful software for this?

Print this item

  Callenge 10 - Lissajous
Posted by: litdev - 11-30-2024, 09:45 AM - Forum: Challenges - Replies (4)

Make a program to draw Lissajous figures.

Print this item

  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

Print this item

  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

Print this item

  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 
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.

Print this item