Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Exit help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Scooter341




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
TheEvilOne




PostPosted: 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
Scooter341




PostPosted: Thu Apr 21, 2005 9:19 am   Post subject: (No subject)

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




PostPosted: Thu Apr 21, 2005 9:22 am   Post subject: (No subject)

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




PostPosted: Thu Apr 21, 2005 3:28 pm   Post subject: (No subject)

Or you can just check the "close program on completion" box when compiling...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: