Difference between revisions of "BoolToStr"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function BoolToStr(Bool: Boolean): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Converts a ...")
 
 
Line 28: Line 28:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Conversion Functions]]
 
[[Category:Conversion Functions]]
 +
[[Category:Data Functions]]

Latest revision as of 10:50, 1 July 2011

Definition

function BoolToStr(Bool: Boolean): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Converts a given boolean value Bool to a string. 'True' is returned if Bool is true and 'False' if Bool is false. This action can be reversed with StrToBool.

Example

begin
  WriteLn(BoolToStr(True));
  WriteLn(BoolToStr(False));
end.

Output:

True
False

See Also