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)
“We attempt to remember our collective American childhood, the way it was, but what we often remember is a combination of real past, pieces reshaped by bitterness and love, and, of course, the video pastthe portrayals of family life on such television programs as Leave it to Beaver and Father Knows Best and all the rest.”
—Richard Louv (20th century)