
-----------------------------------
quanja
Thu Jan 11, 2007 4:10 pm

Turing exit program
-----------------------------------
I'm writing a program and I need help on a code. My teacher asks that we write a code that exits turing using clickable buttons. Can anyone help me with it?

-----------------------------------
Clayton
Thu Jan 11, 2007 4:12 pm

Re: Turing exit program
-----------------------------------
could we see some code so that we can help you figure out where you're going wrong? It just makes it easier for us to help you.

-----------------------------------
quanja
Thu Jan 11, 2007 4:48 pm

RE:Turing exit program
-----------------------------------
I will post once I get back to school. I just actually wanted to know the code that exits turing

-----------------------------------
ericfourfour
Thu Jan 11, 2007 5:01 pm

Re: Turing exit program
-----------------------------------
To exit a Turing program, the program has to finish. There is no specific command. It just happens.

I think what you are asking is if you can close the run window. Well, the easy way to handle this would be to create a new window:
var window : int := Window.Open ("graphics:max;max")
Run your code:
...
put "Hello World!"
...
Then close the window:
Window.Close (window)
