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:
“Wise Draco comes, deep in the midnight roll
Of black artillery; he comes, though late;
In code corroborating Calvins creed
And cynic tyrannies of honest kings;
He comes, nor parlies; and the Town, redeemed,
Gives thanks devout; nor, being thankful, heeds
The grimy slur on the Republics faith implied,
Which holds that Man is naturally good,
Andmoreis Natures Roman, never to be
scourged.”
—Herman Melville (18191891)
“... the self respect of individuals ought to make them demand of their leaders conformity with an agreed-upon code of ethics and moral conduct.”
—Mary Barnett Gilson (1877?)