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
1
vote
2 answers

Can't use all arguments with Shapes to control line in the GraphicsWindow

After trying a few things inside small basic to make a line follow the mouse but not move the entire line, I recently came across a problem. Originally I was trying to constantly have a line update so as it stays connected from one point to the…
EpicMinecartz
  • 39
  • 2
  • 5
1
vote
1 answer

Getting the shortest angle path

I need to get the shortest direction between two angles. Like if Ang1 is 5 and Ang2 is 355 then I want it to return that I need to subtract from Ang1 to get to Ang2 . I have some code that will tell me the shortest distance, but not the shortest…
Zock77
  • 951
  • 8
  • 26
1
vote
1 answer

How to make an infinite-loop screensaver in smallbasic?

I'm making a screensaver and I need to know what's wrong with my code. GraphicsWindow.title="Screen Saver" GraphicsWindow.Width=500 GraphicsWindow.Height=500 For i=1 To Colour = GraphicsWindow.GetRandomColor()…
Yug
  • 13
  • 6
1
vote
3 answers

MS Small Basic: setting a TextBox to read-only

Anyone happen to know if it's possible to set a TextBox to read-only in MS Small Basic? There doesn't seem to be any way to set any properties. Thanks.
EML
  • 9,619
  • 6
  • 46
  • 78
1
vote
2 answers

Is it possible to make a Double Float Value?

Question: Is it possible to make a Double Float Value in Small and Visual Basic? I've been trying to create a double float value in Small/Visual Basic (as in BOTH of them)... And I've always been not having any luck.. I always terminate with an…
Timothy
  • 364
  • 1
  • 12
  • 24
1
vote
1 answer

How do I change the turtle image in Small Basic?

There seem to be no property for an image to use at all, even though it has complete API for movement.
Adrian Godong
  • 8,802
  • 8
  • 40
  • 62
0
votes
0 answers

Goto isnt working within a IF statement but other lines are working

if NumberOfIncorrectLetters = 13 Then GraphicsWindow.PenColor="white" HangmanPart13 = Shapes.AddRectangle(40,5) Shapes.Move(HangmanPart13,1133,575) …
Geekknight
  • 41
  • 4
0
votes
1 answer

Small basic function only works on first guess (hangman)

When you run the program your first guess doesn't work, after the first guess the program works as expected. The file the program needs to read is the mit 10k words txt file. Im unsure how to fix the problem, my guess is that it doesnt read the…
Geekknight
  • 41
  • 4
0
votes
1 answer

Small Basic checking if letter is working

I've been coding a small basic hangman. It is not working, as it has a logic issue, where it can't flag whether a letter is in a word or not (letters that are in the word are being flagged as not in the word) Here is the code Start() Sub start …
0
votes
1 answer

How can i download imagine on Small Basic app?

I can't download imagine on small basic . After that, I install Visual Studio but it doesn't work. Can anyone help me this problem:[enter image description here](https://i.stack.imgur.com/Nu2WU.png) I want to download imagine on Small Basic.
0
votes
1 answer

Writing program for guessing a number in Small basic but the program won't run

this is the code I'm using Sub btnguess_Click randNum = Math.GetRandomNumber(10) FCControls.GetText(txtCels) If txtCels = randNum Then lblanswer = "That's correct the Madame would like to hire you!" ElseIf txtCels <1 or >10 Then …
0
votes
1 answer

How can I reset a variable?

I'm working on a number guessing game in Small Basic. A number range from 1 to a self-selected number is created. There are multiple rounds and everything works in the first round. But not from the 2nd round, because the generated number is taken…
0
votes
1 answer

What is the code/bypass for a linebreak in Smallbasic? Or how to bypass error messages Smallbasic?

I am using MS Smallbasic and not the online version. In the online version you can just use TextWindow.WriteLine() but in the downloaded version you get an error message as it needs at least one argument and can't be empty. I tried using a variable…
Bem Limbu
  • 3
  • 1
0
votes
1 answer

Screen scaling in smallbasic :( (litdev)

GraphicsWindow.Width = 1080 GraphicsWindow.Height = 607.5 gw = 1080 gh = 607.5 GraphicsWindow.Left = 0 GraphicsWindow.Top = 0 dw = Desktop.Width dh = Desktop.Height WidthMod = dw / gw HeightMod = dh / gh newWidth = 1080 * WidthMod newHeight =…
Caleb
  • 1
0
votes
2 answers

Can I change the background of a smallbasic graphics window to an image?

I know that to change the background colour of a graphics window in SmallBasic you can use this: GraphicsWindow.BackgroundColor = "Green" But is it possible to make the background an image from my computer? Thanks.