[Tutor] exit app withour raise ?
alan.gauld at freenet.co.uk
Sun Sep 17 18:54:43 CEST 2006
> In the middle of an application, if someone presses the quit button
> I want to
> exit. At the moment i
> raise 'Quit button pressed'
> which works but spews a stack trace leading to the raise statement.
> Is there a
> neat way to just exit without a stack trace ?
or more commonly
You can add an argument to exit and that will be the error value
to the OS.
More information about the Tutor