Difference between revisions of "AddToReport"

From SCAR Divi Manual
Jump to: navigation, search
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure AddToReport(s: AnsiString);
+
procedure TerminateScript;
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
Adds a [[AnsiString|string]] '''s''' to the report box. In case the report box is not visible, it will be toggled visible.
+
Terminates the current script execution, the equivalent of pressing the stop button (twice).
  
 
==Example==
 
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   AddToReport('Hello world!');
+
   WriteLn('Hello World!');
 +
  TerminateScript;
 +
  WriteLn('The script has terminated, this line will not be reached.');
 
end.
 
end.
 
</source>
 
</source>
  
==See Also==
+
Output:
*[[ClearReport]]
+
Hello World!
*[[WriteLn]]
 
*[[Status]]
 
*[[Alert]]
 
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:GUI Functions]]
 
[[Category:GUI Functions]]

Revision as of 09:57, 28 June 2011

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!