Created
March 14, 2022 17:59
-
-
Save reinaldoacdc/735729c2db4bafdd29c8c96c5d1085fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit StringGridHelper; | |
interface | |
uses | |
Vcl.Grids; | |
type | |
TStringGridHelper = class helper for TStringGrid | |
procedure Clear; | |
end; | |
implementation | |
procedure TStringGridHelper.Clear; | |
var lin, col: integer; | |
begin | |
for lin := 1 to Self.RowCount - 1 do | |
for col := 0 to Self.ColCount - 1 do | |
Self.Cells[col, lin] := ''; | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment