Computer Science Canada

Turing exit program

Author:  quanja [ Thu Jan 11, 2007 4:10 pm ]
Post subject:  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?

Author:  Clayton [ Thu Jan 11, 2007 4:12 pm ]
Post subject:  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.

Author:  quanja [ Thu Jan 11, 2007 4:48 pm ]
Post subject:  RE:Turing exit program

I will post once I get back to school. I just actually wanted to know the code that exits turing

Author:  ericfourfour [ Thu Jan 11, 2007 5:01 pm ]
Post subject:  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:
Turing:
var window : int := Window.Open ("graphics:max;max")

Run your code:
Turing:
...
put "Hello World!"
...

Then close the window:
Turing:
Window.Close (window)


: