Loops with Small Basic

 

Consider this, you are working on a programming problem that requires something printing 26 times. Or you have a database and want to print all the users within it who can login to your website? One way to do is to print something manually. 

i.e 

 

Welcome to Dim Dom

Hello! This website is a place where I post any tutorials that I write and solutions to any problems I discover. I generally create a post when someone asks me how to do something so posts may seem a little random. 

This website is powered by Drupal. One day I'll upload a nicer theme. 

 

:)

Making Decisions

Sometimes when creating programs you will want the computer to make a decision. Nearly all programs require decision, whether it is something simple like checking a username against a list of authorised users, or printing happy birthday on someones birthday decisions make an important part of day to day activities. 

We make decisons using logical statements. Consider this: 

Lets assume you are asking users which Air Cadet Squadron they come from. If they are from 1074 you want to tell them they are amazing. This requires an if statement

Getting user Input

This quick tutorial shows you how to get user input from your application. Open up a new application and write 

TextWindow.WriteLine("Enter your name")

This is a prompt to the user. You can write anything.

name = TextWindow.Read()

This creates a variable named name and sets its value to whatever the user types in the command prompt. 

TextWindow.WriteLine("Hello " + name)

An Introduction to Small Basic

Small Basic is a good way to start programming and learning the basics of logic and how computers generally work. Small Basic can be described as a port from Visual Basic 6, it does not use the .Net Framework hence why it is easy to learn. After a few lessons on Small Basic we will be ready to open up Visual Studio and designing proper applications! 

Installing Small Basic:

Subscribe to Dim Dom  RSS