< GLBasic Programming < BASIC

Here you can see more of the PRINT CLEARSCREEN and END functions:

CLEARSCREEN
PRINT "Hello, world!"
PRINT "I'm learning about commands in BASIC."
PRINT "This text is being printed via the PRINT command."
PRINT "On the next line, I'll use SHOWSCREEN, then CLEARSCREEN."
SHOWSCREEN
CLEARSCREEN
PRINT "Finally, on line 11, I'll use END."
SHOWSCREEN
KEYWAIT
END
PRINT "Now my program is over."
SHOWSCREEN

It makes:

Finally, on line 10, I'll use END.

Because there is a END function, the stuff after the END is not used.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.