Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#13

Re: Inhalt von Stringrid auf einmal löschen

  Alt 6. Mai 2006, 10:09
Delphi-Quellcode:
procedure tLote.ClearStringGrid (sg : TStringGrid);
var
  r_ndx,c_ndx: Integer;
begin
  with sg do
  begin
    for r_ndx := FixedRows +1 to Pred(RowCount) do
       for c_ndx := FixedColls +1 to Pred(CollCount) do
         cells[c_ndx,r_ndx] := '';
  end;
end;
sollte ungefähr so gehen, nicht getestet.

Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat