Welcome to SmallBASIC
Featured sample program: AI.bas
'AI.bas
''AI.bas
'' 16/09/2002
''Author:Robert Blennerhed
dim ctxt(1000) ''memory
dim btxt(1000) ''memory
antal=0
F=Freefile
rem test if memory.dat exist
if exist("memory.dat") then
goto 10
else
goto 20
fi
10 rem load memory
OPEN "memory.dat" FOR INPUT AS #F
INPUT #F, antal
for aa=1 to antal
input #F,ctxt(aa)
input #F,btxt(aa)
next aa
CLOSE #F
goto 15
''***
20 ?"HELP!I HAVE NO MEMORY!CHAT WITH ME":goto 30
15 rem
prin
virgin_happy_hour.bas
Submitted by chrisws on Wed, 10/29/2008 - 11:56.' The purpose of this program is check the Virgin Blue web site for lunch time happy hour specials.
'
' Installation instructions for windows users
'
' 1. Click the Download link below and save this file to c:\temp
'
' 2.
'
' Installation instructions for windows users
'
' 1. Click the Download link below and save this file to c:\temp
'
' 2.
conrec-sb-v01.bas
Submitted by Ted Clayton on Wed, 10/22/2008 - 10:32.
' CONREC - A Contouring Routine
'
' by Paul Bourke, Byte, June 1987
' Homepage http://ozviz.wasp.uwa.edu.au/~pbourke/papers/conrec/
' (See webpage for details of the method.)
' Adapted for SmallBasic-v0.9.5 by Ted Clayton
'
' CONREC avoids the advanced math & heavy computation
' of more-formal contour-generation methods, by using
' a series of geometric tests within a local 'box'
' around & above each point in a data-grid.
' Each contour-segment is generated independently
' of other segments while scanning the grid
' raster-fashion.SmallBASIC version 0.10.1 has been released
Submitted by chrisws on Sat, 08/16/2008 - 01:27.SmallBASIC version 0.10.1 for windows has been released.
This version includes the following features:
- Allows you to open multiple editor tabs.
- Drag and drop files from windows explorer into the File widget.
- Hide editor mode which (sort of) makes your program appear as a standalone application
- Updated online Help system integrated with this web site.
- Includes various language enhancements described in the previous article.
New features
Submitted by chrisws on Mon, 06/16/2008 - 10:57.SmallBASIC has a number of new features intended to broaden its appeal as a general purpose scripting language.
Local variable declaration and assignment
You can now declare and assign a local variable on the same line
local foo = "foo"
Program defined window geometry
The FLTK and SDL versions now allow the window geometry to be set from your program.
option predef grmode 200x300


Recent comments
1 week 3 days ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 4 days ago
2 weeks 4 days ago
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 3 days ago
11 weeks 5 days ago
12 weeks 12 hours ago