[fpc-pascal] BoolToStr() with correct locale output
giuliano.colla at fastwebnet.it
Fri Jun 26 20:39:18 CEST 2009
Graeme Geldenhuys ha scritto:
> Again, nothing like this is hinted at in the documentation. I'll double
> check on Monday what the Kylix 3 help says regarding BoolToStr and
> StrToBool and localization and when it should actually be used.
Kylix 3 help on TrueBoolStrs variable specifies:
When using the BoolToString function, true values are converted to the
first string of the list. When using the StrToBool function, any string
in the list is converted to true.
The same for FalseBoolStrs variable, of course.
Apparently the mechanism is intended to convert from human
understandable or localized strings to standardized TRUE/FALSE strings.
The opposite of what you needed. No wonder it fails for you.
Whenever people agree with me, I always feel I must be wrong (O. Wilde)
More information about the fpc-pascal