QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The END statement terminates a program without an immediate exit or ends a procedure or statement block.

Syntax

END [returnCode%]

END IF

END TYPE

END SELECT

END SUB

END FUNCTION

END DECLARE

Description

Example(s)

In QB64 you won’t return to the IDE unless you are using it to run or edit the program module.


PRINT "Hello world!"
END
PRINT "Hello no one!" 

Returns:


Hello world!

Press any key to continue...

Explanation:“Hello no one!” isn’t returned because the program ended with the END statement no matter what is after that. The message “Press any key to continue…” is displayed after the program ends, both in QBasic and in QB64.

See Also