BoolToStr

From SCAR Divi Manual
Revision as of 09:23, 28 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function BoolToStr(Bool: Boolean): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Converts a ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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