Computer Science Canada

Exit help

Author:  Scooter341 [ Thu Apr 21, 2005 9:05 am ]
Post subject:  Exit help

At the end of my program it asks if you would like to play again and I need to know if there is anyway that when the user says 'n', the program will exit and close down.

Author:  TheEvilOne [ Thu Apr 21, 2005 9:10 am ]
Post subject: 

Well technically you could do Window.Close(0) to close the main window, but then you would get a nice little crash window... Confused

Author:  Scooter341 [ Thu Apr 21, 2005 9:19 am ]
Post subject: 

I used Window.Close(1) and I didn't get any errors.

Author:  TheEvilOne [ Thu Apr 21, 2005 9:22 am ]
Post subject: 

ok, then that works too... glad you didnt get any errors >_>

Author:  [Gandalf] [ Thu Apr 21, 2005 3:28 pm ]
Post subject: 

Or you can just check the "close program on completion" box when compiling...


: