Authored by Ed Price
LitDev and Nonki have been helping us build a strong library of Small Basic content on TechNet Wiki.
Please check out this article from litdev :
This article describes the main language elements or 'grammar' used by the Small Basic language and gives some suggestions for further study. There are several 'getting started' guides, this is just another with a slightly different emphasis.
The Small Basic language has some main grammar features that this article focuses on:
The first program we usually write in any language is the 'Hello World' program that writes this out.
In Small Basic, this is:
TextWindow
.
WriteLine
(
"Hello World"
)
TextWindow
is an Object
WriteLine
is a Method, the brackets show that this method needs some data to work with - in this case, what to write.
"Hello World"
is what we want the write and it is put in double quotes - and is called a literal since it is not a variable, but is just a value (not in a draw).
For more info, see the Statements sections in the article...
Once again, thanks to litdev for this great article!
- Ninja Ed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.