Small Basic ForumDiscuss and provide feedback on the Small Basic project. Small Basic is a simplified programming language and environment to help teach programming to beginners.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 15:37:00 Zb9d14f54-4152-4184-a196-04929580a541http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/77289335-67fe-4d88-af9a-a5a659d0ad61http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/77289335-67fe-4d88-af9a-a5a659d0ad61Davidw147http://social.msdn.microsoft.com/Profile/en-US/?user=Davidw147Small Basic Functions<p>1) The introduction seems to assume that the student knows all of the functions available in Small Basic. is there a list of these available. <br/>2) Is it possible to reade and write files in Small Basic. I can't find any reference to files in the intro</p>Sat, 28 Nov 2009 15:37:00 Z2009-11-28T15:37:00Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/1a3f54f3-8412-40ff-a06b-08dc65a49530http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/1a3f54f3-8412-40ff-a06b-08dc65a49530FremyCompanyhttp://social.msdn.microsoft.com/Profile/en-US/?user=FremyCompanyCreate extension for Small Basic in Small Basic<p>It's possible to create extensions for Small Basic in any DotNet language. This includes Visual Basic .NET and C#. But this also includes Small Basic itself. <br/><br/><a href="http://cid-201f3835d49587fe.skydrive.live.com/self.aspx/Public/Small Basic/SmallBasicExtensionCompiler.zip">http://cid-201f3835d49587fe.skydrive.live.com/self.aspx/Public/Small%20Basic/SmallBasicExtensionCompiler.zip</a><br/><br/>Creating an extension in Small Basic is very simple : Just create your program and compile it with this special compiler. You'll get two new files : &lt;File&gt;.dll and &lt;File&gt;.pdg. Copy those files in C:\Microsoft\Small Basic\lib\ and launch Small Basic. It's all you need !<br/><br/>To create sub/variables that are not accessible for other apps, start their name by an underscore '_'.<br/><br/><span style="text-decoration:underline">Sample (Test.sb) :<br/></span></p> <div style="padding-left:25px">MyField = &quot;(No value)&quot;<br/>_MyPrivateField = &quot;Value of MyField : &quot; <p>Sub TestSub<br/>  TextWindow.Write(_MyPrivateField)<br/>  TextWindow.WriteLine(MyField)<br/>EndSub</p> </div> <br/><span style="text-decoration:underline">Application using Test.sb</span>  <p> </p> <div style="padding-left:25px">Test.Testsub()<br/>Test.Myfield = 5<br/>Test.Testsub()<br/><br/>' Few remarks :<br/>' ===========<br/>' * Test._MyPrviateField isn't accessible, because it begins by a '_'<br/>' * All sub/variable names are capitalized to Mmmm... (M: MAJ, m: min)<br/>' * Your program (Extension) is run just before the first time you use the extension  object</div> <hr class=sig> Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extensionFri, 21 Aug 2009 16:20:23 Z2009-11-28T08:20:14Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/a981c907-4df7-47c5-be58-a4be9d14c746http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/a981c907-4df7-47c5-be58-a4be9d14c746DaCodeDudehttp://social.msdn.microsoft.com/Profile/en-US/?user=DaCodeDudeMy progress through projectsJust started this thread to get my projects from the first to the most recent to show my progress and ideas. Plus feedback!<br/> anyways i downloaded smart basic yesterday and after many hours (and no sleep) heres one of my complete projects:<br/> <br/> The Button! <pre>'Button Variables: txt = &quot;Button&quot; 'Button Text xa = 65 ' X Variable ya = 87.5 'Y Variable wa = 70 'Width Variable ha = 25 'Hight Variable upC = &quot;DimGray&quot; 'Button Up Color downC = &quot;Gainsboro&quot; 'Button Down Color textC = &quot;Black&quot; 'Text Color '------------------------------ xb = xa + wa yb = ya + ha tx = xa + 15 'Adjust Acording to width of button text ty = ya + 5 GraphicsWindow.Height = 200 GraphicsWindow.Width = 200 buttonC = upC DrawButtonBox() DrawButtonText() GraphicsWindow.MouseDown = OnMouseDown GraphicsWindow.MouseUp = OnMouseUp Sub OnMouseDown x = GraphicsWindow.MouseX y = GraphicsWindow.MouseY If (x &gt; xa And x &lt; xb And y &gt; ya And y &lt; yb) Then If (Mouse.IsLeftButtonDown = &quot;True&quot;) Then buttonC = downC DrawButtonBox() DrawButtonText() EndIf EndIf EndSub Sub OnMouseUp buttonC = upC DrawButtonBox() DrawButtonText() EndSub Sub DrawButtonBox GraphicsWindow.BrushColor = buttonC GraphicsWindow.FillRectangle(xa, ya, wa, ha) EndSub Sub DrawButtonText GraphicsWindow.BrushColor = textC GraphicsWindow.DrawText(tx, ty, txt) EndSub</pre> First project i did right after learning the basics and after editing and refining it :DFri, 27 Nov 2009 13:52:13 Z2009-11-28T03:40:10Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/a6d46be1-8bde-46c3-b097-2a43ef5487f3http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/a6d46be1-8bde-46c3-b097-2a43ef5487f3Vijaye Rajihttp://social.msdn.microsoft.com/Profile/en-US/?user=Vijaye%20RajiHappy Birthday Small BasicExactly one year ago, we released the first version of Small Basic CTP to the world.  Today, marking its first birthday, we're releasing the 7th installment of Small Basic CTP.<br/><br/>This version adds localized support to 4 new languages, broading the reach to Chinese, French, German, Italian, Korean, Russian, Spanish and Turkish.<br/><br/>Also, this version includes a new feature called &quot;Graduate&quot; that lets you port your Small Basic programs to Visual Basic.<br/><br/><img src="http://smallbasic.com/drop/graduate.png" alt=""><br/><br/>In addition, this features contains the following bug-fixes and new features:<br/><br/><ol> <li>A helpful crash reporting dialog that pops-up whenever your program crashes </li> <li>Fixes to Scrollbar size to make it easier to find in huge documents </li> <li>Fixed crash when a specified image cannot be loaded </li> <li>Fix for foreign keyboards not being able to use AltGr </li> <li>Opacity and Visibility properties for Shapes </li> <li>Made comments and objects more differentiated in syntax color</li> <li>Made the resizer for help pane more discoverable</li> <li>Fixed Intellisense clipping issues</li> <li>Fixed error column offset issue in the compile errors list</li> <li>Disable SaveAs command when no programs are open</li> </ol> <p>Check it out: <a href="http://smallbasic.com">http://smallbasic.com</a> <br/><br/>Or download directly: <a href="http://download.microsoft.com/download/C/A/F/CAF9E062-94D3-4003-80D9-44CDF7EC7BD9/SmallBasic.msi">http://download.microsoft.com/download/C/A/F/CAF9E062-94D3-4003-80D9-44CDF7EC7BD9/SmallBasic.msi</a></p>Fri, 23 Oct 2009 18:30:44 Z2009-11-28T00:23:27Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b8b52fe3-d0ae-4aed-905b-9970094d638fhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b8b52fe3-d0ae-4aed-905b-9970094d638fDudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonIs this a good solution?yo!<br/> <br/> i just coded a simple spring! and i want to know if this is a good solution for it: MZS896 (i know, it works only for the y axis and the car doesnt rotate, but that might be changed one day..)<br/> <br/> its a kinda stupid solution if you ask me. but it works very well!<br/> <br/> btw, you can set the amount of wheels on the top of the code. <hr class=sig> Live for nothing, OR CODE FOR SOMETHING!Thu, 26 Nov 2009 20:01:57 Z2009-11-27T21:31:41Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/719a5a94-4d1e-4a96-9b4e-b391078f5c93http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/719a5a94-4d1e-4a96-9b4e-b391078f5c93Dudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonHow do i get this angle??hi.<br/> <br/> i have just coded a 360° spring with litdevs formula. QSV762<br/> <br/> the only problem i have now is: How do i get the angle, so i you can rotate the spring to &quot;look&quot; thowards the axis??<br/> <br/> i hope someone can help me here...<hr class="sig">Live for nothing, OR CODE FOR SOMETHING!Fri, 27 Nov 2009 20:05:19 Z2009-11-27T20:42:45Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/facecc8c-babd-4caa-89d6-2bbe2f967af5http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/facecc8c-babd-4caa-89d6-2bbe2f967af5Dudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonPhysics Engine?hi!<br/> <br/> i just wondered:<br/> <br/> did someone code a physics &quot;engine&quot; for small basic? if not, why not? is it just simply not possible in sb? i mean something like box2d (collisions, springs and stuff)... <br/> <hr class=sig> Live for nothing, OR CODE FOR SOMETHING!Fri, 27 Nov 2009 15:06:55 Z2009-11-27T15:06:56Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c488d37d-77dc-42e8-b1a9-101800446acchttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c488d37d-77dc-42e8-b1a9-101800446accihaveamachttp://social.msdn.microsoft.com/Profile/en-US/?user=ihaveamacEndless crashingEvery time I try to open Small Basic, the program crashes before it starts. It shows the logo, then 2 second later, vista says an error occured. How can I get this to stop happening? I have Parental Controls on the account.Thu, 26 Nov 2009 08:24:15 Z2009-11-27T07:27:45Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b1b383c1-6b13-49c0-bf29-00de86103ac6http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b1b383c1-6b13-49c0-bf29-00de86103ac6ClydeWhttp://social.msdn.microsoft.com/Profile/en-US/?user=ClydeWPost your sample source code here and get featured on our blogs! (Part II)Good work, litdev.  Nice going!<br/><br/>========<br/><br/>(This thread is a continuation from <a href="http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/eaacf826-9d12-4e3c-aa10-1b2788f160a6">http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/eaacf826-9d12-4e3c-aa10-1b2788f160a6</a>)<br/>Wed, 01 Jul 2009 01:18:37 Z2009-11-26T21:18:06Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/f88b5a73-c588-47c0-81cb-7a73c2a93782http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/f88b5a73-c588-47c0-81cb-7a73c2a93782Coding Cathttp://social.msdn.microsoft.com/Profile/en-US/?user=Coding%20CatTwenty Five Line ChallengeWorking on developing projects for my Intro to Programming class, I reminded myself of an article I read back in the early days of the PC. The article was in one of the first PC only magazines, and it was publishing the results of a contest the magazine sponsored. Preliminaries complete, here is what they did:<br/> <br/> They challenged their readers to come up with the most useful BASIC programs they could using only a single line of code in the BASIC interpreter. With the colon instruction separator you could easily get twenty commands on a single line. And the winning submissions were brilliant. One was a screen saver-esk art program, a second was a working word processor, and the third was a full sub chase game. I wish I could share the article and results with this group, but my net search for mention of the article turned up nothing.<br/> <br/> So, in the spirit of the early days of PC programming, here is my proposal to all of you:<br/> <br/> The 25 Line Small Basic Challenge!<br/> <br/> Give us your clever, entertaining, most creative best, but keep it under twenty five lines.<br/> <br/> To get the ball rolling I wrote a text based version of Rock-Paper-Scissors in 24 lines (25 if you count my comment). Import Code: CTB433<br/>Sat, 17 Oct 2009 02:44:27 Z2009-11-26T18:26:01Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/68019412-02c0-43be-a667-8fff11b4139chttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/68019412-02c0-43be-a667-8fff11b4139cI BIG JG Ihttp://social.msdn.microsoft.com/Profile/en-US/?user=I%20BIG%20JG%20IHelp With Paint Type ProgramHello Everyone, I am very new to programming, but it is an absolute blast! I never thought it could be so much fun. For my 1st program I am making a drawing/paint program The beta is called &quot;Blackboard&quot; But I haven't decided on a final name yet. Anyway the basic of the program are pretty simple. I want to create it so a football coach can have a Virtual blackboard &quot;if you will&quot; to draw plays, save and print, etc while they are brainstorming or teaching in a learning environment.  The concept is to keep it simple, small, and a useful tool. I have wrote some of the code borrowed some code and will be doing allot of work on it all by myself. But I'm so new to code and programing I thought is would great to ask for help. As I understand it that is what small basic and these forums are for. Thanks In Advance! <div><br/></div> <div>ok the 1st thing I cannot figure out how to do is Clear the graphics window on a double click of the left mouse button. </div> <div>the second thing i cannot figure out is how to resize the image of the football field for the graphics window. </div> <div><br/></div> <div>any help will be appreciated, once i get that done my next step is to create buttons, which i want to try an figure out myself 1st, the buttons i want to create are: Draw Offensive Line (5 Players), Draw Defensive line (3 to 4 players), Clear field so back ground is just black, Print, save as image. Flip players horizontal, add a player. Also i am looking to be able to move the player shapes. </div> <div><br/></div> <div>This is a ton of coding but i think it will be fun and I'm up for the challenge. Any Help or guidance is appreciated!</div> <div><br/></div> <div>here is the code so far: </div> <div><br/></div> <div> <pre>DW = Desktop.Width DH = Desktop.Height GraphicsWindow.Width = (DW - 20) ' to allow for edge GraphicsWindow.Height = (DH - 85) ' To allow for window edge and taskbar GraphicsWindow.Top = 0 GraphicsWindow.Left = 0 GraphicsWindow.BackgroundColor = &quot;Black&quot; GraphicsWindow.PenColor = &quot;Yellow&quot; GraphicsWindow.MouseDown = OnMouseDown GraphicsWindow.MouseMove = OnMouseMove GraphicsWindow.KeyDown = OnKeyDown GraphicsWindow.Clear() = OnMouseRightCick background = ImageList.LoadImage(&quot;C:\Users\guyj\Pictures\Football Field.jpg&quot;) GraphicsWindow.DrawImage(background ,0 ,0) Sub OnKeyDown If (GraphicsWindow.LastKey = &quot;D1&quot;) Then GraphicsWindow.PenColor = &quot;Red&quot; endif If (GraphicsWindow.LastKey = &quot;D2&quot;) Then GraphicsWindow.PenColor = &quot;Blue&quot; endif If (GraphicsWindow.LastKey = &quot;D3&quot;) Then GraphicsWindow.PenColor = &quot;LightGreen&quot; endif EndSub Sub OnMouseDown prevX = GraphicsWindow.MouseX prevY = GraphicsWindow.MouseY EndSub Sub OnMouseMove x = GraphicsWindow.MouseX y = GraphicsWindow.MouseY If (Mouse.IsLeftButtonDown) then GraphicsWindow.DrawLine(prevX, prevY, x, y) endif prevX = x prevY = y EndSub</pre> <br/></div> <div><br/> <div>Screen Shot V 1</div> <div><a href="http://www.flickr.com/photos/29724155@N05/4133427587/">http://www.flickr.com/photos/29724155@N05/4133427587/</a></div> <div><br/></div> <div>Thanks</div> <div><br/></div> </div>Wed, 25 Nov 2009 18:15:53 Z2009-11-26T16:23:13Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/eed02fea-ce49-49ba-8ed1-a708ee621859http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/eed02fea-ce49-49ba-8ed1-a708ee621859Joh999http://social.msdn.microsoft.com/Profile/en-US/?user=Joh999Create extensions under Windows 7I am trying to create a SmallBasic extension under Windows 7 but with no luck. It compiles well but when I put the extension dll in SB Lib folder and start SB the extension doesn't load. I'm using Visual Studio 2008 and target framework NET 3.5. Attaching a simple extension code as an example.<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="font-size:x-small">using System;<br/>using System.Collections.Generic;<br/>using System.Linq;<br/>using System.Text;<br/>using Microsoft.SmallBasic.Library;<br/>namespace SBTest2<br/>{<br/>    [SmallBasicType()]<br/>    public class Class1<br/>    {<br/>        public void Test()<br/>        {</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="font-size:x-small">        }<br/>    }<br/>}<br/><br/>This doesn't load! <br/><br/>Previously had no problems creating extensions under Windows Vista. Anyone have a clue about this?</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p> </span></span></span></span>Sat, 21 Nov 2009 07:10:55 Z2009-11-25T18:36:21Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/2a91d280-7d62-43cb-8b41-4e7bb809ec95http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/2a91d280-7d62-43cb-8b41-4e7bb809ec95Brendan09http://social.msdn.microsoft.com/Profile/en-US/?user=Brendan09Using double quotes in stringsHow do you use double quotes in strings, currently it converts &quot; to two seperate single quotes. is there any way around this, or other escape sequences? Fri, 28 Nov 2008 06:41:51 Z2009-11-24T21:16:24Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/aedbadd6-31ab-48cc-830b-2944db5f9839http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/aedbadd6-31ab-48cc-830b-2944db5f9839Jeffapmhttp://social.msdn.microsoft.com/Profile/en-US/?user=JeffapmWildcardHi everyone, are there any wildcards in Small Basic? (As in a character that stands for many other characters, not *.exe or what have you).<br/> Thanks in advance.Tue, 24 Nov 2009 02:46:39 Z2009-11-25T16:39:37Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/23591953-0483-4d3c-8a45-b9518def61f6http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/23591953-0483-4d3c-8a45-b9518def61f6Mario Cosmihttp://social.msdn.microsoft.com/Profile/en-US/?user=Mario%20CosmiInternationalization Hello vijaye,<br> I think Small Basic is a nice idea and a good starting point for my kids to learn programming, but they don't speak a good english yet<br>So I would like to have a Small Basic release translated in italian (IDE, help, maybe also the keywords), do you have any plan about? I can help if you need, but I see this isn't an open source project<br><br>thanks<br>Mario CosmiFri, 24 Oct 2008 07:58:46 Z2009-11-23T10:04:04Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/6b0fff83-c1e9-4a3a-983c-786546c96c3ehttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/6b0fff83-c1e9-4a3a-983c-786546c96c3eStoneMonkeyKinghttp://social.msdn.microsoft.com/Profile/en-US/?user=StoneMonkeyKingSmall Basic 0.7 Install ErrorI downloaded and attempted to install Small Basic 0.7 and install.  Upon nearly completing the installation a &quot;Error 1001 - Unknown Error &quot;-1.&quot; &quot;  at which point Small Basic 0.7 unistalls!  <br/><br/>This installation was performed on a WinXP system.  <br/><br/>Does anyone have any ieas what is happening.  <br/>Sat, 21 Nov 2009 22:54:42 Z2009-11-23T07:34:35Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9ce977d6-86af-4403-81b9-e487c6afac52http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9ce977d6-86af-4403-81b9-e487c6afac52FremyCompanyhttp://social.msdn.microsoft.com/Profile/en-US/?user=FremyCompanyBugs and Suggestions (v0.6 to v0.7)<strong>First v0.6 &quot;problems&quot;</strong> :<br/><br/>* There's no documentation for Shapes.Zoom.<br/><br/>* When GraphicsWindow is hidden, Width/Height = 0 (they should return actual size if would be shown)<br/><br/><em>   à System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)<br/>   à Microsoft.SmallBasic.Library.GraphicsWindow.&lt;&gt;c__DisplayClass8.&lt;FillRectangle&gt;b__7()<br/></em><br/>* ImageList seems to rasterize animated gifs <strong>:-(</strong><br/><br/><strong>Few others remarks</strong> :<br/><br/>* GraphicsWindows.SetCursor is very great !<br/>* Would it be possible to split SmallBasicLibrary in two DLL ? One would contains Primitive, SmallBasicCallBack, ... and the other the rest of the library. So it would be possible to update the library and still having extensions working whithout update (this is not possible for my extension because I rely on the library, but other extensions could not have the problem), at least if you don't need to change Primitive or other important type.<hr class="sig">Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extensionThu, 20 Aug 2009 15:00:00 Z2009-11-21T16:08:08Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e99a8e86-a2e9-4e90-8a2f-402b14fe6272http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e99a8e86-a2e9-4e90-8a2f-402b14fe6272Loyola IThttp://social.msdn.microsoft.com/Profile/en-US/?user=Loyola%20ITTurtle.hide<p> I am writing a nice simple turtle program for a demo in my Programming I class.  In old school Logo hiding the turtle made the drawing go much faster, the turtle did not have to be drawn.  I have tried Turtle.Hide() with no results.   I wrote this:</p> <p>Turtle.Show()</p> <p>Turtle.Hide()</p> <p>The turtle is now hidden.  As soon as a turtle command is given (like Turtle.Move(100)) the turtle reappears.  Is there a way of truely hiding the turtle?</p>Fri, 30 Jan 2009 23:21:23 Z2009-11-21T15:31:32Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/be611a13-a2df-41b8-b982-2847fe1239fehttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/be611a13-a2df-41b8-b982-2847fe1239fecamthemanhttp://social.msdn.microsoft.com/Profile/en-US/?user=camthemanhow do i make a good game?<p>im trying to make make a game but it keeps coming up with errors and stuff i need help!</p>Tue, 17 Nov 2009 21:46:30 Z2009-11-21T15:28:20Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e9c51aae-ba01-447f-a87c-b30b994bce53http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e9c51aae-ba01-447f-a87c-b30b994bce53FremyCompanyhttp://social.msdn.microsoft.com/Profile/en-US/?user=FremyCompanyHow to unload an image from the ImageList to save memory ?<p>I don't find any method to delete an image from the ImageList when we don't need it anymore.<br/>Is there a way to do that ? If no, can you add a UnloadImage to the ImageList for the next version ?</p><hr class="sig">Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extensionSat, 25 Apr 2009 09:33:03 Z2009-11-21T15:22:16Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/6762951d-8493-490f-9566-5a2f3beb06dfhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/6762951d-8493-490f-9566-5a2f3beb06dfMathguy360http://social.msdn.microsoft.com/Profile/en-US/?user=Mathguy360How do you use a NOT function in Small Basic?I am trying to use a NOT modifier in a conditional but whenever I use the != symbols it gives me 2 errors:  <div><br/></div> <div>('line number of conditional',1) Expected RightParens Here </div> <div>and </div> <div>('line number of conditional',1) Expected Conditional Here. </div> <div><br/></div> <div>When I just use = then everything runs. How would you use the NOT modifier in Small Basic if possible?</div>Thu, 19 Nov 2009 03:46:15 Z2009-11-21T00:54:15Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/254fc43c-a8d5-4ad7-a057-03839ec68f19http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/254fc43c-a8d5-4ad7-a057-03839ec68f19Dudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonWth is going on??!hi! i have a problem with my code!<br/> <br/> the smoke particles wont fade out when the particles hit the circle! emit steam thowards the circle, and see what happens!<br/> <br/> i have abolutely no explanation why this is happening...<br/> <br/> XMQ437<hr class="sig">Live for nothing, OR CODE FOR SOMETHING!Thu, 19 Nov 2009 21:53:36 Z2009-11-20T20:05:28Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/7b99d1ae-878d-4565-b171-c698ef88647ehttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/7b99d1ae-878d-4565-b171-c698ef88647eDudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonIs this possible?hi! i always wondered if the following is possible, because it would be very useful!<br/> <br/> when you look at my steam code: <strong>BPV315 </strong> you'll see that the steam only being accelerated thowards the top. but i want it to be accelerated to every direction (360 degrees)<br/> <br/> so i would get something like this:<br/> <br/> i can set the angle of the emitter. for example 45° and then the steam is being accelerated in that direction.<br/> <br/> but i dont know if this is possible with the way i coded it. is it just possible if i use that formula wich moves objects by its angle??<hr class="sig">Live for nothing, OR CODE FOR SOMETHING!Sun, 15 Nov 2009 14:07:00 Z2009-11-19T21:26:58Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/bb5adf00-cb6f-4870-bdfe-7c8f22d0de50http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/bb5adf00-cb6f-4870-bdfe-7c8f22d0de50BlueHairBobhttp://social.msdn.microsoft.com/Profile/en-US/?user=BlueHairBobIs the code for the IDE available?My team is working on porting a custom language that we use internally to use the VS Shell for our IDE.  But, the IDE for SmallBasic looks so much cooler and fits with the simplified language syntax we have much better.  Is the IDE code for SmallBasic available for use in other projects or are there interfaces to change the syntax and parsing to be used by another language?  This would be a really great &quot;little languages&quot; IDE.  If it is not available, please consider making it available.Thu, 19 Nov 2009 20:28:38 Z2009-11-19T20:55:09Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c209f91a-278c-43b3-ad03-7ecb4c8b6de1http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c209f91a-278c-43b3-ad03-7ecb4c8b6de1Vijaye Rajihttp://social.msdn.microsoft.com/Profile/en-US/?user=Vijaye%20RajiProject Euler Solutions<p>This thread is dedicated for interesting project Euler solutions.  Some initial attempt on project Euler solutions are available on our Wiki: <a href="http://smallbasic.com/wiki/ProjectEuler.ashx">http://smallbasic.com/wiki/ProjectEuler.ashx</a>. <br/><br/>Problems are available at: <a href="http://projecteuler.net/index.php?section=problems">http://projecteuler.net/index.php?section=problems</a></p>Tue, 31 Mar 2009 23:11:51 Z2009-11-19T17:22:28Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/32c1d285-4ac0-4bcf-8cff-a3f0651428ddhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/32c1d285-4ac0-4bcf-8cff-a3f0651428ddJason Jacqueshttp://social.msdn.microsoft.com/Profile/en-US/?user=Jason%20JacquesRequest: Binary Safe Functions & Generalised NetworkingIt seems that the Text and File objects are not binary safe. While this does not inhibit general usage it does prevent users of Small Basic from processing unknown data types and working with arbitrary binary file formats. This would add no additional complexity to the language for the typical user while greatly extending the languages capability (i.e ability to write a routine to save each pixel to a bmp file). <div><br/></div> <div>Also, some generalised Networking routines would also be useful. Maybe Network.Write(host, port, data) and Network.Read(host, port) which could return an array of Host, Port and Data.</div> <div><br/></div> <div> <ul> <li>The Small Basic runtime would need to maintain the connection to the server (on the given port) and provide buffering between commands to simplify the developers' interaction (i.e. avoid network handles as you have done with file handles and file i/o).</li> <li>It would also be nice to allow Network.Read() or equivalent to work for 'localhost' creating a way to create a server (which I why I suggest a comprehensive array return type).</li> </ul> <div><br/></div> So, that is my wish list for now.</div> <div><br/></div> <div>Jason.</div>Wed, 18 Nov 2009 23:21:09 Z2009-11-18T23:21:10Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/92b827a1-2453-47f1-917e-7204cd6637a5http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/92b827a1-2453-47f1-917e-7204cd6637a5Rob Sherratthttp://social.msdn.microsoft.com/Profile/en-US/?user=Rob%20SherrattCannot Graduate a simple program from Small Basic to Visual Basic, missing Microsoft.SmallBasic.Library, help please?Well its 35 years since I last wrote any code, at that time it was assembler and C for Intel 8085 and Zilog Z80, and reading Dr Dobbs journal.  As I approach retirement I thought I'd start again with Microsoft Basic and then see how I progress.  I know I have a lot of catching up to do.  Anyway, I tried to &quot;Graduate&quot; the following Small Basic code segment into Visual Basic 2008 Express:<br/> <br/> GraphicsWindow.BackgroundColor = &quot;Black&quot; <br/> i = 1<br/> While i &lt; 1000 <br/>   x = Math.GetRandomNumber(640) <br/>   y = Math.GetRandomNumber(480)<br/>   For z = 200 To 10 Step -10<br/>     GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor() <br/>     GraphicsWindow.FillEllipse(x-z/2, y-z/2, z, z) <br/>   EndFor<br/>   Program.Delay(500)<br/> EndWhile<br/> <br/> <br/> Within Visual Basic 2008 Express the following code was generated:<br/> <br/> <br/> Module Rob_Circles_18th_Nov_09Module<br/>     Dim i, x, y, z As Primitive<br/>     Sub Main()<br/>         GraphicsWindow.BackgroundColor = &quot;Black&quot;<br/>         i = 1<br/>         While i &lt; 1000<br/>             x = Microsoft.SmallBasic.Library.Math.GetRandomNumber(640)<br/>             y = Microsoft.SmallBasic.Library.Math.GetRandomNumber(480)<br/>             For z = 200 To 10 Step -10<br/>                 GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor()<br/>                 GraphicsWindow.FillEllipse(x - (z / 2), y - (z / 2), z, z)<br/>             Next<br/>             Program.Delay(500)<br/>         End While<br/> <br/>     End Sub<br/> End Module<br/> <br/> I then tried to build the application and run it from the Visual Basic 2008 environment, and the basic problem is this:<br/> <br/> Warning    1    Namespace or type specified in the project-level Imports 'Microsoft.SmallBasic.Library' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    Rob_Circles_18th_Nov_09<br/> <br/> I'm stuck at this point because I can't find any Microsoft.Smallbasic.Library extension for the Visual Basic 2008 environment.   Please can anyone help me?<br/> <br/> Thanks,<br/> Rob<br/> <br/> <br/>Wed, 18 Nov 2009 00:49:43 Z2009-11-18T01:33:20Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/3d0c07d7-81f4-483c-9a5c-f616947e7e3ahttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/3d0c07d7-81f4-483c-9a5c-f616947e7e3arandom_actshttp://social.msdn.microsoft.com/Profile/en-US/?user=random_actsFlickr ProblemHello! <br/>I am just starting with SimpleBasic and tried the examples in the &quot;Introducing...&quot; manual. The Flickr example is working fine:<br/><br/>GraphicsWindow.BackgroundColor = &quot;Black&quot; <br/>GraphicsWindow.MouseDown = OnMouseDown <br/> <br/>Sub OnMouseDown <br/>  pic = Flickr.GetRandomPicture(&quot;urban&quot;) <br/>    GraphicsWindow.DrawImage(pic, 0, 0) <br/>EndSub <br/><br/>However, if I replace &quot;urban&quot; with &quot;xsdcvf9&quot; [I tagged one of my photos on Flickr as &quot;xsdcvf9&quot; (just to create an unique tag)] the SmallBasic example is not working: no photo gets displayed. I can find my picture via the Flickr homepage though.<br/><br/>What do I do wrong?<br/><br/>Thanks,<br/><br/><br/>Mon, 16 Nov 2009 19:20:34 Z2009-11-16T21:38:37Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/0df37dcb-1bc9-4ca3-b67f-f4c7caf39f03http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/0df37dcb-1bc9-4ca3-b67f-f4c7caf39f03MikeMcMillanhttp://social.msdn.microsoft.com/Profile/en-US/?user=MikeMcMillanFunctions in Small BasicAre there plans to add standard functions to Small Basic? I would like to be able to write functions that accept an argument list, rather than pass global variables to sub procedures.Mon, 16 Nov 2009 15:31:38 Z2009-11-16T19:52:37Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9f30667a-dc5c-474f-9180-216ec709b763http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9f30667a-dc5c-474f-9180-216ec709b763kts99http://social.msdn.microsoft.com/Profile/en-US/?user=kts99SOkoCUTE released.A Soko-Ban clone in SB.<br/> <br/> Not perfect, but its SB:<br/> <a href="http://www.crew99.com/downloads/SOkoCUTE.zip">Download-Link</a> <br/> <br/> Code will follow next week. I should remove some comments first. Dont expect too much from the code behind. Its as ugly as it can be ;-)<br/> <br/> Have fun. Try it. And feel free to give me some feedback.Sun, 27 Sep 2009 19:37:38 Z2009-11-14T22:54:58Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c5a9b29c-3ff5-4e31-988f-493dbd48ed03http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/c5a9b29c-3ff5-4e31-988f-493dbd48ed03Dudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonVery Useful Steam Codehi!<br/> i tought i should share this with you guys.<br/> <br/> maybe you know my old steam/smoke code from my old projects or my project compilation. ive now coded it that way, to be able to set and calculate the smoke particle amount in real time. for example:<br/> <br/> if 10 smoke sprites are visible, just 5 will be calculated. once they disappeared, 0 will be calculated.<br/> <br/> Import code: TFJ965<br/> <br/> ive still got 1 little bug. to just calculate the steam sprites, i used 2 variables: Steam_Old, and Steam_New.<br/> <br/> Steam_Old is the number of the Sprite that just Disappeared.<br/> Steam_New is the number of the sprite wich has just spawned.<br/> <br/> now it runs the code for the smoke for all the smoke objects inbetween of Steam_Old and Steam_New.<br/> you can check the Steam_Old,Steam_New Variables and the amount of sprites being drawn, in the textwindow. but the strange thing is that Steam_Old always becomes greater by 1 than Steam_New, wich results that the amount of sprites on-screen is -1. i hope someone can help me to fix this!<br/> <br/> also, if someone knows a way to optimize this even more, then please tell me!<br/> <br/> EDIT:<br/> <br/> I added the new version of the code! <hr class=sig> Live for nothing, OR CODE FOR SOMETHING!Sat, 14 Nov 2009 18:16:09 Z2009-11-14T22:16:01Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/08ef1830-5ee6-4b7f-ad14-2cfff1c117b7http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/08ef1830-5ee6-4b7f-ad14-2cfff1c117b7Dudesonhttp://social.msdn.microsoft.com/Profile/en-US/?user=DudesonCosine and Sine Formula Wantedhi!<br/> <br/> following.<br/> <br/> i need a formula that can calculate the direction of an object thowards another pixel. for example to make a box move thowards the mouse. (with an angle and stuff. not this:  Insect_X[i] = Insect_X[i] + (Mouse_X - Insect_X[i]) * 0.05)        )<hr class="sig">Live for nothing, OR CODE FOR SOMETHING!Sat, 14 Nov 2009 16:58:15 Z2009-11-14T20:08:07Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/25e431b1-6318-4b35-93b4-3cb4cd5e626ahttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/25e431b1-6318-4b35-93b4-3cb4cd5e626aJayNTurnerhttp://social.msdn.microsoft.com/Profile/en-US/?user=JayNTurnerrelative paths?is there a way to get Sound.PlayAnsWait(&quot;song.mp3&quot;) to work rather then typing the full path?<br/> or is there a code to  find the .exe's current path in the file system (detect what folder its in)Fri, 13 Nov 2009 19:20:23 Z2009-11-13T22:14:35Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/dbff71a6-baca-4e58-a191-d43690b08e24http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/dbff71a6-baca-4e58-a191-d43690b08e24FEHÉR Andráshttp://social.msdn.microsoft.com/Profile/en-US/?user=FEH%u00c9R%20Andr%u00e1sSmall Basic 0.7 BUGsThe small basic version 0.7 still does not write '*' on Hungarian keyboard. Insted of changing the size of letters!<br/>(AltGr -)<br/>Sat, 24 Oct 2009 11:18:04 Z2009-11-13T20:26:13Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/ef23f7da-d488-4fee-8e5b-f34fedc3fd16http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/ef23f7da-d488-4fee-8e5b-f34fedc3fd16zylascopehttp://social.msdn.microsoft.com/Profile/en-US/?user=zylascopeSmall Basic Solar System Simulator<p>Just a bunch of coloured filled circles that follow an elliptical path around a yellow filled circle (the sun).<br/><br/>Does anybody have any ideas on how to improve this? Is there a simple way to alter the draw order, so that outer-planets<br/>appear 'outer'?<br/><br/>Currently, sometimes a planet with a small orbit radius can appear to be on top of planets that have a<br/>larger orbit radius, and it looks really weird. Any ideas are appreciated.<br/><br/>Geoff.<br/><br/>Get it at ... <a href="http://smalbasic.com/program/?VKP168">http://smalbasic.com/program/?VKP168</a><br/><br/>Or enter this code into Small Basic: VKP168<br/><br/>Here's the source ...<br/><br/>'----------------------------------------------------------------------------------------------------------------------<br/>'   Microtronix - Solar System Simulator for MS Small Basic v0.7<br/>'   by Geoff Williams - 4/11/2009 - Freeware<br/>'   This graphic demo appears in my music video &quot;Haunted House&quot; at <a href="http://www.youtube.com/zylascope">www.youtube.com/zylascope</a><br/>'   <a href="http://www.cdbaby.com/all/zylascope">www.cdbaby.com/all/zylascope</a><br/>'   plethora at nsw.chariot.net dot au<br/>'   <a href="http://smalbasic.com/program/?VKP168">http://smalbasic.com/program/?VKP168</a><br/>'----------------------------------------------------------------------------------------------------------------------</p> <p>GraphicsWindow.Width=1300<br/>GraphicsWindow.Height=750<br/>GraphicsWindow.BackgroundColor=&quot;black&quot;<br/>GraphicsWindow.Title=&quot;Microtronix - Solar System Simulator&quot;<br/>GraphicsWindow.Show()<br/>x=GraphicsWindow.Width/2<br/>y=GraphicsWindow.Height/2</p> <p>While (1=1)<br/>  numOfPlanets=Math.GetRandomNumber(9)<br/>  delay=Math.GetRandomNumber(100)+50<br/>  GraphicsWindow.BrushColor=&quot;white&quot;<br/>  GraphicsWindow.Clear()<br/>  GraphicsWindow.DrawText((GraphicsWindow.Width/2)-30,20,numOfPlanets + &quot; planet system.&quot;)</p> <p>  'generate planets properties using random values...   <br/>  For i=1 To numOfPlanets<br/>    Array.setvalue (&quot;planetRadius&quot;,i,Math.GetRandomNumber(600)+30)<br/>    Array.setvalue(&quot;planetAngle&quot;,i,Math.GetRandomNumber(360))<br/>    Array.setvalue(&quot;planetAngleInc&quot;,i,math.GetRandomNumber(3) + 1) <br/>    Array.setvalue(&quot;planetSize&quot;,i,Math.GetRandomNumber(90)+10)<br/>    Array.setvalue(&quot;planetColor&quot;,i,GraphicsWindow.GetColorFromRGB(Math.GetRandomNumber(255),Math.GetRandomNumber(255),Math.GetRandomNumber(255)))<br/>  EndFor<br/>  <br/>  For loops=1 To 400<br/>     <br/>      'draw the sun first before the planets are drawn so it looks like the planets are in front of the sun, when the planet size is big<br/>      GraphicsWindow.BrushColor=&quot;yellow&quot;<br/>      GraphicsWindow.FillEllipse(x,y,80,80) <br/>      <br/>      For z=1 To numOfPlanets<br/>        'calc planet size based on angle...<br/>        'make planet smaller if between 90-270 degrees<br/>        If Array.getvalue(&quot;planetAngle&quot;,z) &gt; 90 And Array.getvalue(&quot;planetAngle&quot;,z) &lt; 270 Then<br/>          planetsize = math.Round(Array.getvalue(&quot;planetSize&quot;,z) * math.Abs(Array.getvalue(&quot;planetAngle&quot;,z) - 180) / 100) <br/>          If planetsize = 0 Then <br/>            planetsize = 1<br/>          EndIf  <br/>        EndIf<br/>        'make planet bigger if between 270-360 1-90 degrees'<br/>        If Array.getvalue(&quot;planetAngle&quot;,z) &gt; 270 And Array.getvalue(&quot;planetAngle&quot;,z) &lt;= 360 Then<br/>          planetsize = Math.Round(Array.getvalue(&quot;planetSize&quot;,z) * (1 + (Array.getvalue(&quot;planetAngle&quot;,z) - 270) / 100)) '<br/>          If planetsize = 0 Then <br/>            planetsize = 1<br/>          EndIf  <br/>        EndIf<br/>        'make planet bigger if between 1-90 degrees<br/>        If Array.getvalue(&quot;planetAngle&quot;,z) &gt; 0 And Array.getvalue(&quot;planetAngle&quot;,z) &lt;= 90 Then<br/>          planetsize= Math.Round(Array.getvalue(&quot;planetSize&quot;,z) * (1 + (90 - Array.getvalue(&quot;planetAngle&quot;,z)) / 100))<br/>          If planetsize = 0 Then <br/>            planetsize = 1<br/>          EndIf<br/>        EndIf</p> <p>        'draw planets...<br/>        GraphicsWindow.BrushColor=Array.getvalue(&quot;planetColor&quot;,z)<br/>        GraphicsWindow.FillEllipse(x+Array.getvalue(&quot;planetRadius&quot;,z)*Math.Sin(math.GetRadians(Array.getvalue(&quot;planetAngle&quot;,z))),y+Array.getvalue(&quot;planetRadius&quot;,z)*math.Cos(math.GetRadians(Array.getvalue(&quot;planetAngle&quot;,z)))*.2,planetsize,planetsize)<br/>        <br/>        'calc new values...<br/>        Array.setvalue(&quot;planetAngle&quot;,z,Array.getvalue(&quot;planetAngle&quot;,z) + Array.getvalue(&quot;planetAngleInc&quot;,z))<br/>        If Array.getvalue(&quot;planetAngle&quot;,z) &lt; 0 Then <br/>          Array.setvalue(&quot;planetAngle&quot;,z,Array.getvalue(&quot;planetAngle&quot;,z) + 360)<br/>        EndIf<br/>        If Array.getvalue(&quot;planetAngle&quot;,z) &gt; 360 Then <br/>          Array.setvalue(&quot;planetAngle&quot;,z,Array.getvalue(&quot;planetAngle&quot;,z) - 360)<br/>        EndIf   <br/>      EndFor<br/>      <br/>      Program.Delay(delay) <br/>      'For t=1 to 5000<br/>      'delay loop. If I use program.delay(delay) above, then the graphics don't flicker as much <br/>      'EndFor<br/>      <br/>      'GraphicsWindow.Clear()    <br/>      'draw a black filled rectangle over the screen area taken up by the orbiting planets, this flickers less than .Clear()<br/>      GraphicsWindow.BrushColor=&quot;black&quot;<br/>      GraphicsWindow.FillRectangle(0,250,1300,450)<br/>  EndFor<br/>Endwhile</p>Tue, 10 Nov 2009 07:58:02 Z2009-11-10T07:58:03Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/d8a94b8e-daf3-412b-ac19-80f26aa0555bhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/d8a94b8e-daf3-412b-ac19-80f26aa0555bPath_drchttp://social.msdn.microsoft.com/Profile/en-US/?user=Path_drcCan multiple SB .exe's run at same time?  I have an idea about being able to pull up multiple graphic and/or text windows.<br><br>I was thinking how cool it would look to be in a game where a separate window pops up to either show an alert or some other data (maybe you're a spy and your boss is sending you a message on a secure network channel?).<br>...and as the game progresses and becomes harder these windows would start popping up and maybe (fake) 'video feeds' would have snow to give player the feeling of 'what the heck is going on here?'<br><br>Maybe one graphic window per robot being controlled and the window wouldn't come up until you activate the robot.<br><br>What ever the scenario, I know that with one program running, you can have one graphic window and one text window.<br>Is there a way to run a second, third, and maybe fourth program from any of the SB program(s) already running and at the same time?<br>I figure values could be passed, if need be, through .txt files.<br><br>So;<br>1) can more than one SB program run at the same time,<br>and if so,<br>2) can one of the running SB programs start another SB program?<br><br>This sounds like one of those things that goes beyond the scope of Small Basic.Wed, 24 Dec 2008 22:14:30 Z2009-11-11T16:40:18Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e3b70096-ce5f-4527-97a9-cd0d0df6e6d6http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/e3b70096-ce5f-4527-97a9-cd0d0df6e6d6Revirthhttp://social.msdn.microsoft.com/Profile/en-US/?user=RevirthIt's not working when I press ctrl + tab<font style="font-size:12px">there are nothing to meessage.... what can I do? even I didn't saving ;(</font><font style="font-size:12px"> </font><font style="font-size:12px"><br></font> Mon, 09 Feb 2009 03:29:35 Z2009-11-10T02:16:25Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/16bcc1d9-de4c-48ea-a887-d65f0e4b3d0fhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/16bcc1d9-de4c-48ea-a887-d65f0e4b3d0fDavey-Waveyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Davey-WaveySmall Basic ExpansionsI'm new to exploring Small Basic, but I've already read a number of posts regarding various unofficial Expansions for it. <div><br/></div> <div>It seems a good idea to me that it would make good sense for a single open-source Expansion to be created in some location (like google code) that contains all the various Expansions from third parties.</div> <div><br/></div> <div>This way, as a newbie to Small Basic, it would be possible to install a single expansion to get all the community desired features missing from the core package.</div> <div><br/></div> <div>Any thoughts, or offers to do this?</div>Mon, 09 Nov 2009 22:30:00 Z2009-11-09T23:34:58Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/0c6246f9-a46e-4ef5-a3a1-f4cc49089962http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/0c6246f9-a46e-4ef5-a3a1-f4cc49089962Loyola IThttp://social.msdn.microsoft.com/Profile/en-US/?user=Loyola%20ITChange ball color in Paddle In the simple paddle game in &quot;Introducing Small Basic&quot; is it possible to change the color of the ball by changing the property of the ball?  As a learning exercise I want to change the color of the ball with each bounce.  At present the only way I can see to change the ball color is to redraw the ball at the bounce location and use the Graphicswindow.Brushcolor.  I am thinking that since the ball is not an object there is no slick way of using any ball property.  It would be nice to have something like Shapes.Color(ball, &quot;red&quot;).  I am getting lazy in my old age.Thu, 19 Feb 2009 20:27:32 Z2009-11-09T23:13:05Zhttp://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9d7f54b0-4edb-439c-be02-76183d7bbfc6http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/9d7f54b0-4edb-439c-be02-76183d7bbfc6tbrndshttp://social.msdn.microsoft.com/Profile/en-US/?user=tbrndsFull ScreenHello Everybody.<br/> <br/> Is it possible to set GraphicsWindow in Full Screen Mode?<br/> <br/> Thanks a lotTue, 07 Apr 2009 10:24:19 Z2009-11-09T22:19:29Z