hallo baumina,
wieso ändert sich das Datum in allen Zeilen ?
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
i : integer;
begin
i := StringGrid1.RowCount;
Stringgrid1.RowCount := i+1;
for i := 1 to StringGrid1.RowCount-1 do begin
StringGrid1.Cells[0,StringGrid1.RowCount-i]:= IntToStr(i);
StringGrid1.Cells[3,StringGrid1.RowCount-i]:= (FormatDateTime('hh:nn:ss',now));
end;
end;
Was ist hier noch falsch?