Small Basic: TextWindow

This article describes about the text window and TextWindow object in Microsoft Small Basic programming language.


The Text Window

The text window is an character-based user interface (CUI) for Small Basic.  Following one line program shows the text "Hello World" to the text window.

TextWindow.WriteLine("Hello World")

Cursor

A cursor is a blinking marker in the text window to show the point to input a character.  Check a blog post for more details about cursor position.

TextWindow.Write("Your name? ")
name = TextWindow.Read()
TextWindow.WriteLine("Hello " + name)

Color

The text window can change it's background and foreground (text) colors with 16 colors.  Check a TechNet Wiki article about TextWindow colors.

TextWindow Object

TextWindow object is a package of properties and operations to program the text window.  See details in the reference.

Sample Programs


See Also

Additional Resources