Difference between revisions of "WriteLn"

From SCAR Divi Manual
Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Definition ==
+
==Definition==
 +
<source lang="scar" lines="false">
 
procedure WriteLn(x);
 
procedure WriteLn(x);
 +
</source>
  
== Description ==
+
==Availability==
This function writes data defined in '''x''' to the debug box. It accepts a wide variety of types. Only base types are accepted.
+
SCAR Divi 3.00 > Current
  
=== Accepted Types ===
+
*Before SCAR Divi 3.20 the function was defined as:
*[[Types.Boolean|Boolean]]
+
<source lang="scar" lines="false">
*[[Types.Char|Char]], [[Types.AnsiChar|AnsiChar]]
+
procedure WriteLn(s: string);
*[[Types.string|string]], [[Types.AnsiString|AnsiString]]
+
</source>
*[[Types.ShortInt|ShortInt]]
 
*[[Types.Byte|Byte]]
 
*[[Types.SmallInt|SmallInt]]
 
*[[Types.Word|Word]]
 
*[[Types.Integer|Integer]]
 
*[[Types.Cardinal|Cardinal]]
 
*[[Types.Int64|Int64]]
 
*[[Types.Double|Double]]
 
  
== Example ==
+
==Description==
begin
+
Writes data defined in '''x''' to the debug box. It accepts a wide variety of types. Only base types are accepted. In case the debug box is not visible, it will be toggled visible.
  WriteLn('Hello!');
+
 
  WriteLn(1);
+
===Accepted Types (x)===
  WriteLn(True);
+
*[[Boolean]]
end.
+
*[[Char]], [[AnsiChar]]
 +
*[[string]], [[AnsiString]]
 +
*[[ShortInt]]
 +
*[[Byte]]
 +
*[[SmallInt]]
 +
*[[Word]]
 +
*[[Integer]]
 +
*[[Cardinal]]
 +
*[[Int64]]
 +
*[[Double]]
 +
 
 +
==Example==
 +
<source lang="scar">
 +
begin
 +
  WriteLn('Hello!');
 +
  WriteLn(1);
 +
  WriteLn(True);
 +
end.
 +
</source>
 +
 
 +
Output:
 +
Hello!
 +
1
 +
1
 +
 
 +
==See Also==
 +
*[[ClearDebug]]
 +
*[[Status]]
 +
*[[Alert]]
 +
*[[AddToReport]]
 +
 
 +
[[Category:Functions]]
 +
[[Category:GUI Functions]]

Latest revision as of 16:50, 2 July 2011

Definition

procedure WriteLn(x);

Availability

SCAR Divi 3.00 > Current

  • Before SCAR Divi 3.20 the function was defined as:
procedure WriteLn(s: string);

Description

Writes data defined in x to the debug box. It accepts a wide variety of types. Only base types are accepted. In case the debug box is not visible, it will be toggled visible.

Accepted Types (x)

Example

begin
  WriteLn('Hello!');
  WriteLn(1);
  WriteLn(True);
end.

Output:

Hello!
1
1

See Also