Creative Basic

Creative Basic
Designed by Paul Turley
Developer IonicWind Software
Stable release
v1.01 / 2008 (2008)
OS Microsoft Windows
License Commercial
Website www.ionicwind.com

Creative Basic (CB) is a third-generation event-driven programming language for Windows, with an integrated development environment (IDE).

Current version executables are interpreted and require no runtime libraries be installed on the end-user's computer. A planned future version will have compiled executables.

Creative Basic has an extensive command set, and access to the application programming interface (API) libraries available in the Microsoft Windows operating system.

Although this modern version dates from 2007, it is a development from, and is completely compatible with IBasic, which has been in use worldwide since 2002.

Some notable projects are Jerry Muelver's WikiWriter, a WikiWriter to Chm Wizard by Alyce Watson, and Mike Rainey's manufacturing engineering programs. (see the Links below).

Example programs

"Hello" program:

print "hello"

Program to open a Console window and print 10 random numbers:

openconsole

for i = 1 to 10
	x = Rnd(100)
	print x
next i

do:until inkey$<>""
closeconsole
end

Program to create a GUI window with an Exit button and event handling routine:

def w:WINDOW
def wstyle:INT

wstyle = @SIZE|@MINBOX|@MAXBOX

WINDOW w,50,50,800,600,wstyle,0,"Window Title",main
SETWINDOWCOLOR w,RGB(0,0,90)

CONTROL w,"B,Exit,(800-80)/2, 500, 80, 40, 0, 1"

WAITUNTIL w = 0
END

SUB main
SELECT @CLASS
	case @IDCLOSEWINDOW
		closewindow w
' clicking the Exit button ...
	case @IDCONTROL
		select @CONTROLID
			case 1
				closewindow w
		endselect
endselect
RETURN

External links

This article is issued from Wikipedia - version of the 4/22/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.