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 endProgram 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 RETURNRead more about this topic: Creative Basic
Famous quotes containing the word programs:
“There is a delicate balance of putting yourself last and not being a doormat and thinking of yourself first and not coming off as selfish, arrogant, or bossy. We spend the majority of our lives attempting to perfect this balance. When we are successful, we have many close, healthy relationships. When we are unsuccessful, we suffer the natural consequences of damaged and sometimes broken relationships. Children are just beginning their journey on this important life lesson.”
—Cindy L. Teachey. Building Lifelong RelationshipsSchool Age Programs at Work, Child Care Exchange (January 1994)
“[The Republicans] offer ... a detailed agenda for national renewal.... [On] reducing illegitimacy ... the state will use ... funds for programs to reduce out-of-wedlock pregnancies, to promote adoption, to establish and operate childrens group homes, to establish and operate residential group homes for unwed mothers, or for any purpose the state deems appropriate. None of the taxpayer funds may be used for abortion services or abortion counseling.”
—Newt Gingrich (b. 1943)