Small Basic API Reference
Arguments

The Arguments object provides operations to access the command-line arguments that were passed at the start of this program.

Array

This object provides a way of storing more than one value for a given name. These values can be accessed by another index.

Clock

This class provides access to the system clock

Desktop

This class provides methods to interact with the desktop.

Dictionary

This class provides access to an online Dictionary service.

File

The File object provides methods to access, read and write information from and to a file on disk. Using this object, it is possible to save and open settings across multiple sessions of your program.

Flickr

This class provides access to Flickr photo services.

GraphicsWindow

The GraphicsWindow provides graphics related input and output functionality. For example, using this class, it is possible to draw and fill circles and rectangles.

ImageList

This class helps to load and store images in memory.

Math

The Math class provides lots of useful mathematics related methods

Mouse

The mouse class provides accessors to get or set the mouse related properties, like the cursor position, pointer, etc.

Network

This private helper class provides network access methods

Program

The Program class provides helpers to control the program execution.

Shapes

The Shape object allows you to add, move and rotate shapes to the Graphics window.

Sound

The Sound object provides operations that allow the playback of sounds. Some sample sounds are provided along with the library.

Stack

This object provides a way of storing values just like stacking up a plate. You can push a value to the top of the stack and pop it off. You can only pop the values one by one off the stack and the last pushed value will be the first one to pop out.

Text

The Text object provides helpful operations for working with Text.

TextWindow

The TextWindow provides text-related input and output functionalities. For example using this class, it is possible to write or read some text or number to and from the text-based text window.

Timer

The Timer object provides an easy way for doing something repeatedly with a constant interval between.

Turtle

The Turtle provides Logo-like functionality to draw shapes by manipulating the properties of a pen and drawing primitives.


Array

This object provides a way of storing more than one value for a given name. These values can be accessed by another index.

Methods

ContainsIndex

Array.ContainsIndex(array, index)

Gets whether or not the array contains the specified index. This is very useful when deciding if the array's index was initialized by some value or not.

array

The array to check.

index

The index to check.

Returns

"True" or "False" depending on if the index was present in the specified. array.

ContainsValue

Array.ContainsValue(array, value)

Gets whether or not the array contains the specified value. This is very useful when deciding if the array's value was stored in some index.

array

The array to check.

value

The value to check.

Returns

"True" or "False" depending on if the value was present in the specified. array.

GetItemCount

Array.GetItemCount(array)

Gets the number of items stored in the array.

array

The array for which the count is requested.

Returns

The number of items in the specified array.

GetValue

Array.GetValue(arrayName, index)

Gets a value for a given array and index.

arrayName

The name of the array.

index

The name of the index.

Returns

The value at the specified index of the specified array.

RemoveValue

Array.RemoveValue(arrayName, index)

Removes the array item at the specified index.

arrayName

The name of the array.

index

The index of the item to remove.

Returns

Nothing

SetValue

Array.SetValue(arrayName, index, value)

Sets a value for a given array and index.

arrayName

The name of the array.

index

Name of the index.

value

The value to set.

Returns

Nothing
(c) Copyright 2009, Microsoft Corporation. All rights reserved.