Convert a boolean value to a string.
Source position: sysstrh.inc line 250
function BoolToStr( |
B: Boolean; |
UseBoolStrs: Boolean = False |
):string; |
B: Boolean; |
const TrueS: string; |
const FalseS: string |
):string; |
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.
None.
|
Convert a string to a boolean value. |
|
|
True Strings used in StrToBool conversion. |
|
|
False Strings used in StrToBool conversion. |