Difference between revisions of "AddToReport"

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

Revision as of 09:58, 28 June 2011

Definition

procedure AddToReport(s: AnsiString);

Availability

SCAR Divi 3.00 > Current

Description

Adds a string s to the report box. In case the report box is not visible, it will be toggled visible.

Example

begin
  AddToReport('Hello world!');
end.

See Also