| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Scripting 5.9. Quitting</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Scripting 5.9. Quitting |
| 13 |
</b></font></table></table> |
| 14 |
<p>Usually, the execution of your script ends when the interpreter has executed the last line that is not within a procedure definition. However, you can also explicitly stop the script:</p> |
| 15 |
<dl> |
| 16 |
<dt><b>exitScript</b> ( ) |
| 17 |
<dd>stops the execution of the script in the normal way, i.e. without any messages to the user. Any settings (form) window is removed from the screen (unless Apply was clicked instead of OK).</dd> |
| 18 |
<dt><b>exitScript</b>: <i>error-message</i> |
| 19 |
<dd>stops the execution of the script while sending an error message to the user. You can use the same argument list as with <b>writeInfoLine</b>. Any settings (form) window will stay on the screen.</dd> |
| 20 |
</dl> |
| 21 |
<p>For an example, see <a href="Scripting_6_8__Messages_to_the_user.html">Scripting 6.8. Messages to the user</a>.</p> |
| 22 |
<h3>Links to this page</h3> |
| 23 |
<ul> |
| 24 |
<li><a href="_exitScript_.html"><code><font size=+1>exitScript</font></code></a> |
| 25 |
<li><a href="Scripting.html">Scripting</a> |
| 26 |
<li><a href="Scripting_5__Language_elements_reference.html">Scripting 5. Language elements reference</a> |
| 27 |
</ul> |
| 28 |
<hr> |
| 29 |
<address> |
| 30 |
<p>© Paul Boersma 2019-07-13</p> |
| 31 |
</address> |
| 32 |
</body> |
| 33 |
</html> |