请输入您要查询的百科知识:

 

词条 Creative Basic
释义

  1. Example programs

  2. External links

{{multiple issues|{{Notability|date=November 2008}}{{Unreferenced|date=November 2008}}
}}{{Infobox programming language
|name = Creative Basic
|logo =
|year =
|designer = Paul Turley
|developer = IonicWind Software
|latest_release_version = v1.01
|latest_release_date = {{Start date and age|2008}}
|implementations =
|current version =
|operating_system = Microsoft Windows
|genre = Programming
|license = Commercial
|website = {{URL|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

  • Creative Basic website
  • [https://web.archive.org/web/20090210104100/http://hytext.com/iwiki/ Wikiwriter project]
  • WikiWriter to CHM Wizard
  • CodingMonkeys see IBasic (previous CBasic version)
{{BASIC}}

1 : BASIC interpreters

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/24 8:29:29