[fpc-devel] TryStrToBCD inverted

Joost van der Sluis joost at cnoc.nl
Sun Feb 20 17:44:48 CET 2011


Hi all,

Am I the only one who finds it strange that TryStrToBCD returns false
when it succeeds, and true when it fails?

The Delphi documentation says otherwise.

I don't understand the code, but I can revert the true/false logic, and
a quick test seems to work. But it will imply backwards incompatibility.
Is that a problem if it's documented in the user-changes document on the
wiki?

Joost.




More information about the fpc-devel mailing list