Small Basic: Sample Code
This article is for listing sample code of each property/operation/event/keyword in Microsoft Small Basic programming language. Links are not completed. Please add your simple sample codes.
Keywords
There are sample codes also in the Small Basic Environment (IDE) help for those 14 keywords.
Operators
Objects (Properties / Operations / Events)
For Kinect objects (KinectBodyList, KinectFaceList and KinectWindow), there are sample codes in the Small Basic Environment (IDE) help.
- Array
- Clock
- Controls
- Desktop
- Dictionary
- File (GetSettingFilePath. CreateDirectory, DeleteDirectory, GetDirectories, CopyFile, DeleteFile, GetFiles, LastError, GetTemporaryFilePath, ReadContents, AppendContents, WriteContents, ReadLine, InsertLine, WriteLine)
- Flickr
- GraphicsWindow (KeyDown, KeyUp, LastKey, LastText, TextInput, MouseDown, MouseMove, MouseUp, MouseX, MouseY, CanResize, Height, Hide, Left, Show, ShowMessage, Top, Width, Other Properties/Operations)
- ImageList
- KinectBodyList
- KinectFaceList
- KinectWindow (SensorSize, Show, BackgroundImage, Height, IsBackgroundVisible, IsBodySensor, IsEndOnClose, Left, Title, Top, Width, CaptureCroppedImage, CaptureImage, Hide)
- Math (Sin, Cos, ArcTan, NaturalLog, Pi, Power, Abs, ArcCos, ArcSin, Ceiling, Floor, GetDegrees, GetRadians, GetRandomNumber, Log, Max, Min, Remainder, Round, SquareRoot, Tan)
- Mouse (Drag and Drop)
- Network
- Program
- Shapes
- Sound (Pause, PlayAndWait, Play, Stop, PlayMusic, Other Operations)
- Stack
- Text
- TextWindow
- Timer
- Turtle
See Also
Additional Resources
- July Challenge: Code Sample (forum)
- Small Basic - Gather Code Samples (blog)
Other Languages
- [[Articles: Small Basic: サンプルコード (ja-JP)]]