117
Ssquare:=ArraySquare[i];
for j:=i+1 to n+1 do
begin
if (ArrayData[i]=ArrayData[j]) and (ArrayData[i]<>'') then
begin
Sdata:=Sdata+1;
ArrayData[j]:='';
Scost:=Scost+ArrayCost[j];
Ssquare:=Ssquare+ArraySquare[j];
end;
end;
table31CostKvm.Value:=Scost/(Ssquare);
table31.Post;
table31.Next;
end;
end;
DbChart1.Series[0].Clear;
with Series1 do
begin
table31.First;
for i:=1 to table31.recordCount do
begin
DBChart1.Series[0].Add( table31CostKvm.Value,table31Data.AsString,
clRed);
,
table31.Next;
end;
end;
table31.Last;
for i:=table31.RecordCount downto 1 do table31.Delete;
end;
1:begin
groupbox81.Caption:='Домa';
Query10.SQL.Clear;
Query10.SQL.Add('SELECT Data,Cost,TotalSquare FROM Домa WHERE
(Operation=''Продaжa'')and (City=''Невинномысск'') ');
Query10.Open;
Query10.First;
n:=Query10.recordCount;
for i:=1 to Query10.recordCount do
begin
ArrayData[i]:=DateToStr(query10Data.Value);
ArrayCost[i]:=query10Cost.Value;
ArraySquare[i]:=query10TotalSquare.Value;
query10.Next;
end;