Author |
Message |
Scooter341
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TheEvilOne
![](http://www.xomby.com/elfen_lied_eye_small.jpg)
|
Posted: Thu Apr 21, 2005 9:10 am Post subject: (No 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 Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
Scooter341
|
Posted: Thu Apr 21, 2005 9:19 am Post subject: (No subject) |
|
|
I used Window.Close(1) and I didn't get any errors. |
|
|
|
|
![](images/spacer.gif) |
TheEvilOne
![](http://www.xomby.com/elfen_lied_eye_small.jpg)
|
Posted: Thu Apr 21, 2005 9:22 am Post subject: (No subject) |
|
|
ok, then that works too... glad you didnt get any errors >_> |
|
|
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Thu Apr 21, 2005 3:28 pm Post subject: (No subject) |
|
|
Or you can just check the "close program on completion" box when compiling... |
|
|
|
|
![](images/spacer.gif) |
|