• Print

Author Topic: End of a Program  (Read 155 times)


  • Guest
End of a Program
« on: October 30, 2011, 11:49:56 AM »

Just discovered QB64 and I love it. (I am using Win7-64 and could not use qb45 anymore!)
I have discovered that I cannot get out of an .EXE program without having to press a key, even after my program has a choice for ending it.
In QB45, the word "End" used to kick you out no questions asked, and wothout having to press a key to do so.

Am I missing a certain command or certain wording?



  • Hero Member
  • *****
  • Posts: 16446
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: End of a Program
« Reply #1 on: October 30, 2011, 12:02:20 PM »
No it didn't. You had to press a key to get back to the code in the IDE. SYSTEM is what you are looking for. It will exit immediately, but in QB64 that can be quite fast! END allows you to see the last screen.

Most people never used system because they played in the IDE and wanted to return to it. SYSTEM allows a Qbasic BAS program to be run from a command line just as if it were an EXE file, but when SYSTEM closes it you don't return to the IDE.
« Last Edit: October 30, 2011, 01:31:34 PM by Clippy »
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip


  • Sr. Member
  • ****
  • Posts: 491
    • Donnelly-House
    • Email
Re: End of a Program
« Reply #2 on: October 30, 2011, 12:36:44 PM »
My favorite QB64 program:

Code: [Select]
20 GOTO 10




  • Guest
Re: End of a Program
« Reply #3 on: October 30, 2011, 03:02:21 PM »
Thanks a lot

I had completely forgotten the "Systen" command

  • Print