BoolToStr

From SCAR Divi Manual
Revision as of 10:50, 1 July 2011 by Freddy (talk | contribs)
(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