GLBasic Programming/BASIC/Your First Program

To make you're first program, make a new file and type this:

CLEARSCREEN
PRINT "Hello, world!", 100, 100
SHOWSCREEN
KEYWAIT
END

Explanation:Edit

  • CLEARSCREEN makes the screen clears the screen
  • PRINT displays everything between quotations and places it at x100, y100
  • SHOWSCREEN shows everything typed above on the screen
  • KEYWAIT makes the program wait until a key is pressed (You also can use MOUSEWAIT)
  • END stops the program there
  Index Next: BASIC/PRINT, CLEARSCREEN, and END
Last modified on 15 March 2012, at 15:56