Hi friends, I need help with counting rows in database table.
The result should appear in the Edit.
for example:
Col1 = AsString
ROW1 = 345,50
ROW2 = 28,90
row3 = 13,60
row
.
.
row
rowx = 1,08
Code:
TForm1.Button1Click procedure (Sender: TObject);
boiling
i: integer
y: double;
begin
for i: = -1 to Table1.DataSet.RecordCount -1
begin
y: = Calculate (Table1.Rows);
end;
Edit1.Text: = FloatToStr(y);
end;