Paul Cornell

These blog postings are provided "AS IS" with no warranties, and confer no rights.

December, 2009

Posts
  • Paul Cornell

    Small Basic #15: The Turtle

    • 0 Comments
    Microsoft Small Basic provides a Turtle object that lets you draw on the graphics window with a little turtle. You can make the turtle crawl around, drawing wherever you lead it, as demonstrated in the following code that draws the word "Hi!" near the...
  • Paul Cornell

    Small Basic #14: Mouse and Keyboard Events

    • 0 Comments
    If you're interested in creating basic text-based programs, Microsoft Small Basic has TextWindow and Text objects are probably enough for your needs. However, if you're interested in interactive graphical programs (such as games or rich personal productivity...
  • Paul Cornell

    Small Basic #13: Math Facts Guessing Game

    • 0 Comments
    It's that time in my childrens' lives where they need to practice their basic math facts under a time limit. To help them, I created a simple Microsoft Small Basic program. You can view my code at http://smallbasic.com/program/?FHD214 , or if you have...
  • Paul Cornell

    Small Basic #12: Shapes

    • 0 Comments
    The Microsoft Small Basic Shapes object allows you to do the following with shapes in the graphics window , as demonstrated in the following code: Add shapes such as ellipses, images, lines, rectangles, and trianges. These shapes can be animated...
  • Paul Cornell

    Small Basic #11: The Graphics Window

    • 0 Comments
    The Microsoft Small Basic graphics window allows you to do the following, as demonstrated in the following code: Change the graphics window's background color, height, width, placement relative to the screen's top-left corner, title, and whether...
  • Paul Cornell

    Small Basic #10: File Input and Output

    • 0 Comments
    As demonstrated in the following code, you can use the Microsoft Small Basic File class to create file directories, access directories' files, and copy files from one file directory to another. You can also read from files and write to files. ' This code...
  • Paul Cornell

    Small Basic #9: Arrays

    • 0 Comments
    Microsoft Small Basic supports arrays, which allow you to store items in temporary computer memory. Unlike the stack which allows you to add, read, and remove items in a specific order, arrays allow you to add, read, and remove items in random order....
  • Paul Cornell

    Small Basic #8: Math

    • 0 Comments
    Microsoft Small Basic supports several mathematical functions, including not only simple addition, subtraction, multiplication, and division, but also comparisons, random numbers, rounding, exponents, logarithms, Pi, arcs, and trigonometry, as demonstrated...
  • Paul Cornell

    Small Basic #7: Odds and Ends - Sound, Program, and Stack

    • 0 Comments
    A few more Microsoft Small Basic classes with very methods and properties are: The Sound class, which allows you to work with a computer's sounds and sound files. The Program class, which allows you to work with a running Small Basic program...
  • Paul Cornell

    Small Basic #6: Odds and Ends - Desktop, Dictionary, Flickr, ImageList, and Network

    • 0 Comments
    Some Microsoft Small Basic classes have very few methods and properties. Among them are: The Desktop class, which allows you to interact with a computer's desktop. The Dictionary class, which allows you to fetch definitions of words over the...
  • Paul Cornell

    Small Basic #5: Clocks and Calendars

    • 0 Comments
    Microsoft Small Basic has a few clock-related properties for the date, year, month, day of the week, hour, minute, second, and even millisecond. They are demonstrated in the following code by using the Clock class: TextWindow.WriteLine("Today is: " +...
  • Paul Cornell

    Small Basic #4: Working with Text

    • 0 Comments
    Here is some code demonstrating how to use all of the Microsoft Small Basic Text class's methods: TextWindow.Write("What is your first name? ") firstName = TextWindow.Read() TextWindow.Write("What is your last name? ") lastName = TextWindow.Read()...
  • Paul Cornell

    Small Basic #3: Keywords

    • 0 Comments
    The For , To , EndFor , Step , While , EndWhile , If , Then , Else , ElseIf , and EndIf keywords are used to help control Microsoft Small Basic program flow, as demonstrated in the following code: ' For only. ' Prints 1 through 10. For i = 1 To 10 ...
  • Paul Cornell

    Small Basic #2: Working with the Text Window

    • 0 Comments
    This is the first of many posts that demonstrates how to use Microsoft Small Basic to program computers. This post assumes that you've already downloaded and installed Small Basic and that you've already read at least the first 10 pages of the Getting...
  • Paul Cornell

    Small Basic #1: Introducing Small Basic

    • 0 Comments
    I was recently asked to participate in an initiative to help students and beginners learn how to program computers. Once of the tools that we're using for this is Microsoft Small Basic, which you can download and install from the Small Basic web site...
  • Paul Cornell

    Outlook 2010: Macro for Moving Selected Items

    • 5 Comments
    It has been a really long time since I wrote Microsoft Outlook VBA code. But when a customer last week asked me if there was a way to write some VBA code to move selected Inbox items to an Archive folder, I felt right at home. Here's what I came up with...
Page 1 of 1 (16 items)