DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


BoolToStr

Declaration: BoolToStr(x: boolean; Format: integer): string;
Converts the boolean value x to a corresponding string value. The parameter Format determines the result:
  Format        returned string
  ------------------------------
    0             TRUE   FALSE
    1             T      F
    2             .T.    .F.
    3             1      0
    4             -1     0
    5             FF     00
    6             YES    NO
    7             GOOD   BAD
  ------------------------------
Note: if Format contains an invalid specifier it automatically defaults to zero.