Graeme Geldenhuys schreef:
Michael Van Canneyt wrote:
StrToBool should use all elements ?

In FPC 2.2.5 it does not.

============ implementation  =====================
begin
 if UseBoolStrs Then
  begin
    CheckStrs;
    if B then
      Result:=TrueBoolStrs[0]
    else
      Result:=FalseBoolStrs[0];
  end
 else
  If B then
    Result:='-1'
  else
    Result:='0';
end;
======================================

Please add the declaration, to make sure it is StrToBool

Vincent
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to