Questions tagged [smallbasic]

Small Basic is a Microsoft product for teaching beginners to program.

Small Basic is a Microsoft product for teaching beginners to program.

78 questions
0
votes
1 answer

jumping man -Small basics

Shapes_Init() Shapes_Add() While("True") Shapes.Rotate(shp[3]["obj"],300) Shapes.Rotate(shp[4]["obj"],-300) Shapes.Rotate(shp[5]["obj"],90) Shapes.Rotate(shp[6]["obj"],90) Program.Delay(1000) Shapes.Rotate(shp[3]["obj"],-300)…
Ramya
  • 1
  • 1
0
votes
2 answers

Small Basic - How to check if a date is passed?

I'm trying to make a license verification that should expire in a week with small basic. I could make a script that would write down the day the license was activated and that would expire the license as soon as the current day is 7 larger than the…
Jaïr Paalman
  • 268
  • 1
  • 3
  • 12
0
votes
1 answer

Need Help on creating a Database on Small Basic

Just need general directions on where to start a database on small basic. i saw a guy do it but his instructions were quite confusing. i've been programming for a month now, so I'm new. can someone give me more or less an idea on where to start?
MSG2
  • 9
  • 2
0
votes
2 answers

SmallBasic calculate monthly salary for employees

I need to set overtime hours to 0 if a negative number is entered and if the overtime hours is greater than 20 set it to 20. I entered it as follows TextWindow.Write(" Enter the number of overtime hours: ") overtime = TextWindow.ReadNumber() If…
A35
  • 1
  • 1
0
votes
2 answers

I need helping reassigning a number in an array

n is the variable but that doesn't matter in this case customer[n]["amount"] = 300 but when i try to add 400, the result shows up as 300400. I need help. Thanks in advance for whoever helps me. textwindow.writeline("How much do you want to…
MSG2
  • 9
  • 2
0
votes
1 answer

Two statements in small basics arent working together

For an assignment in IT we have to create a house using small basics, to get a higher level we are told to make the colours of the windows change colour. I've done this; I've tried to accomplish a higher level by adding moving clouds also, the two…
tonique
  • 21
  • 3
0
votes
0 answers

Multiplayer glitching in smallbasic

I've been working on a Multiplayer game (again) and I've got a problem with glitching. If you Start it up and join the server on two Computers, you will notice that the ships will kind of glitch around a bit. I think this is due to the messages sent…
Zock77
  • 951
  • 8
  • 26
0
votes
1 answer

I would like to be able to make my Small Basics Program submit multiple votes

So I am making a program with small basics and this is my code: initialiseprogram() Sub initialiseprogram GraphicsWindow.Show() GraphicsWindow.Clear() GraphicsWindow.FontBold = "True" GraphicsWindow.BrushColor = "Green" …
user4245205
0
votes
1 answer

small basic - Multidimensional arrays

Currently as test code i am useing this While (ColumnCount <=6) For r = 1 To rows For c = 1 To columns GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor() boxes[r][c] = Shapes.AddRectangle(width,height) …
0
votes
3 answers

Understanding small basic while loop

I have this code that Ive spent too much time on and I cant figure. Its supposed to get the averages of the numbers and then output the answer.I input the name and then when I type in the numbers it only takes 1 and after that i cannot continue. Im…
user3819134
  • 3
  • 1
  • 4
0
votes
2 answers

How do I make a fast refreshing counter?

I'm trying to make a refreshing counter... Take for example - Let's use the position of the mouse (within the window). I've tried just clearing and redrawing everything but it always bugs out when there are many elements to draw. a = 1 While(a =…
Timothy
  • 364
  • 1
  • 12
  • 24
0
votes
1 answer

Why do I have to include an index?

So I found this code online (usually I do C# however I'm trying to teach smallbasic to a friend of mine) that basically reads a file: TextWindow.Write("Enter the name of the new directory: ") DirectoryName = TextWindow.Read() files =…
Jon
  • 2,566
  • 6
  • 32
  • 52
0
votes
1 answer

Small Basic: What did I do wrong?

Hello I just started using small basic and there is a simple program that I compiled but something is wrong. Total = ((Loan*Loanp/100)+Expense)-Salary TextWindow.WriteLine("Your Loan: ") Loan = TextWindow.ReadNumber() TextWindow.WriteLine ("Your…
0
votes
4 answers

Small Basic Arrays to C#

I hate arrays! I have no idea how to create them or use them :/ So I wonder if you could help me... I've got a basic understanding of arrays in Small Basic which I'm learning at school at the moment but Small Basic really limits you on what you can…
benboy847
  • 35
  • 4
0
votes
2 answers

"Get Pixel" loop misses pixels it should have found. (In Small Basic)

Here's the code in Small Basic: GraphicsWindow.CanResize = 0 GraphicsWindow.Width = 201 GraphicsWindow.Height = 300 X = 0 circumstance = 0 'Initialization GraphicsWindow.SetPixel(100,0,"Black") code = "01111111" 'Start For i=1 To…
Tower07
  • 1
  • 1