Example Code
Here are some examples of the language:
"Hello world" program:
print "hello world" endProgram to display a pop-up message box with the words "Hello, World!" on it:
nomainwin notice "Hello world!" end nomainwin notice "Example program" + chr$(13) + "Hello world!" endProgram to display an input box:
nomainwin prompt "Enter your name:";response$ notice "Response:"+ chr$(13) +response$ endRunning another application using Liberty BASIC:
nomainwin run "notepad.exe" endPrinting multiplication table of 5 on form:
for i = 1 to 10 res = 5 * i print res next i endRead more about this topic: Liberty BASIC
Famous quotes containing the word code:
“Motion or change, and identity or rest, are the first and second secrets of nature: Motion and Rest. The whole code of her laws may be written on the thumbnail, or the signet of a ring.”
—Ralph Waldo Emerson (18031882)
“Acknowledge your will and speak to us all, This alone is what I will to be! Hang your own penal code up above you: we want to be its enforcers!”
—Friedrich Nietzsche (18441900)