0
Planned

False positive W521

Roland Bengtsson 10 years ago updated by Roman 10 years ago 1

Hi this trigger warning 521. But in else statement Result is set in the for-loop.


function TcxCustomGridRecord.GetLastParentRecordCount: Integer;

begin

if Level = 0 then

Result := 0

else

for Result := 0 to Level - 1 do

if not IsParentRecordLast[Result] then Break;

end;

Planned

Good point. This will be fixed in the next update.