Program termination: Difference between revisions

(→‎{{header|AppleScript}}: Corrected existing entry.)
Line 1,213:
if problem:
os.abort()</lang>
 
=={{header|QB64}}==
''CBTJD'': 2020/03/15<br>
There are three commands that can be used to end a program in QB64:
1) END - The program will display "Press any key to continue..." and wait for a keypress before closing the program.
2) STOP - The program will close immediately, but will not close any open files. STOP is ONLY used for debugging purposes and should not be used to exit programs!
3) SYSTEM - The ONLY proper command to immediately close a program in QB64 without a pause or interactive message as with the END command.
<lang qbasic>INPUT "Press any key to contine...", a$
IF 1 THEN SYSTEM</lang>
 
=={{header|R}}==
306

edits