ideintf: improve TBoolPropertyEditor from Gerard Visent (#0012607)

git-svn-id: trunk@17472 -
This commit is contained in:
paul 2008-11-20 13:09:09 +00:00
parent c7cadabc8d
commit d083f486d2

View File

@ -2999,9 +2999,10 @@ procedure TBoolPropertyEditor.SetValue(const NewValue: ansistring);
var
I: Integer;
begin
if CompareText(NewValue, 'False') = 0 then
if (CompareText(NewValue, 'False') = 0) or (CompareText(NewValue, 'F') = 0) then
I := 0
else if CompareText(NewValue, 'True') = 0 then
else
if (CompareText(NewValue, 'True') = 0) or (CompareText(NewValue, 'T') = 0) then
I := 1
else
I := StrToInt(NewValue);