none
New updates for Small Basic v0.2 RRS feed

  • General discussion

  • The latest version of Small Basic contains a slew of new updates.  Most of these features were picked from these forums and were requested by members here. 

    Please accept my apologies if your favorite feature didn't make it in for this release.  Please continue to provide feedback - we're keeping a backlog of all such features.  They will be considered for the next release.

    Language and Editor
    • Several Crash fixes
    • Support for non-US regional OS settings
    • Auto-indent 
    • Parentheses for conditional expressions are now optional
    • Added ElseIf keyword to the language
    • Support for inline comments
    • Fixed bug with negative step value in For..EndFor

    Library API Additions

    • Array
      • GetItemCount
      • ContainsIndex
      • ContainsValue
      • RemoveValue
    • Desktop
      • Get ScreenWidth and ScreenHeight
    • File
      • CreateDirectory
      • DeleteFile
      • GetFiles
      • GetDirectories
      • WriteContents Fix: Now works even if the file doesn't already exist.
    • GraphicsWindow
      • Performance Improvements
      • Width/Height Fix: No need to set these twice
      • Hide Fixed crash
      • Add/FillTriangle
      • RotateShape
      • CanResize You now have the option of changing the resize mode
      • Left/Top You can now position the window
      • GetColorFromRGB Construct a valid color value from the color components
    • Math
      • Power
      • GetRandomNumber Fix: Is one based and includes the max-number in range. [Breaking Change]
    • Program
      • Fixes for End()
      • ProgramDirectory Gets the directory of the program
    • Text
      • Append For those times when you want a number to be treated as text
      • GetCharacter Unicode character code to Character
      • GetCharacterCode Character to Unicode Character code
    • TextWindow
      • Clear
      • Left/Top
    • Turtle
      • Angle
      • X, Y

    Wednesday, December 17, 2008 10:16 PM
    Moderator

All replies

  • I saw another update in this version. The use of command line has been improve.

    Using the file SmallBasicCompiler.exe in command line to compile file .SB

    command line :
     
        SmallBasicCompiler.exe <file .SB>

    :-)
    Thursday, December 18, 2008 4:01 AM
  • Nice find MaCsousa.
     
    The compiler was in fact rewritten completely from ground up - and in the process fixed a few bugs and made it possible to do more interesting language services for the editor.
    Thursday, December 18, 2008 7:09 AM
    Moderator
  • I don't know if it's me, but I haven't the API Additions :/

    repro:
    Download from : http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx
    Installation : uninstall older version / install new version

    Files:
    all creation date are between 10/06 and 10/19 2008
    The Pixel
    Thursday, December 18, 2008 10:46 PM
  • Sometimes, depending on the proxy server you're hitting, or your ISP's cache you might be getting a stale version downloaded.

    If you are using IE, hitting Ctrl+F5 helps to refresh this. 

    The newer version will have "Microsoft Small Basic v0.2" in its title of the setup, and the IDE will have the same text at the left bottom part of the screen.  This is how you can tell you have the latest bits.
    Thursday, December 18, 2008 11:51 PM
    Moderator
  • I'm really sorry, but I've re-download it 5 or 6 times on the Small Basic page and the same on the MS Download Center and always get the same version. (No "Microsoft Small Basic v0.2" in the title). Tried with others browsers too.

    Edit: Finally I got it... Thank you.

    The Pixel
    Friday, December 19, 2008 12:35 AM
  • The stated changes in version 0.2 include a bug fix to GraphicsWindow Hide crash. I found that Small Basic 0.2 was crashing if I tried to use GraphicsWindow.Hide().

    I have reloaded Small Basic 0.2, and it is not now crashing, but GraphicsWindow.Hide() is not hiding the window. As soon as another graphics window command is used, eg. GraphicsWindow.BackgroundColor = "SteelBlue", then the window appears. The result is it is possible to see the changes being made to the colour, size etc. of the window before GraphicsWindow.Show() is called.

    PS Would it be possible to allow English spellings (eg. BackgroundColour)?

    OS Windows XP Pro

     

    Saturday, January 24, 2009 10:44 AM