Difference between revisions of "AddToReport"
From SCAR Divi Manual
| Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
| − | procedure | + | procedure TerminateScript; |
</source> | </source> | ||
| Line 8: | Line 8: | ||
==Description== | ==Description== | ||
| − | + | Terminates the current script execution, the equivalent of pressing the stop button (twice). | |
==Example== | ==Example== | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
| − | + | WriteLn('Hello World!'); | |
| + | TerminateScript; | ||
| + | WriteLn('The script has terminated, this line will not be reached.'); | ||
end. | end. | ||
</source> | </source> | ||
| − | + | Output: | |
| − | + | Hello World! | |
| − | |||
| − | |||
| − | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:GUI Functions]] | [[Category:GUI Functions]] | ||
Revision as of 08:57, 28 June 2011
Contents
Definition
procedure TerminateScript;
Availability
SCAR Divi 3.00 > Current
Description
Terminates the current script execution, the equivalent of pressing the stop button (twice).
Example
begin
WriteLn('Hello World!');
TerminateScript;
WriteLn('The script has terminated, this line will not be reached.');
end.Output:
Hello World!