BoolToStr function
Convert a boolean value to a string.
Declaration
function BoolToStr(B: Boolean; UseBoolStrs: Boolean=False): stringDescription
BoolToStr converts the boolean
B to a string representation.
Which string this is depends on the way the function is called:
You can provide the strings to use for the
True or
False in the parameters
TrueS and
FalseS,
or you can tell the function to use the first string in the
TrueBoolStrs and
FalseBoolStrs arrays by setting the
UseBoolStrs parameter to
True
The default (Delphi compatible) behaviour is to use -1 for True and 0 for False.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
