TStringGrid.Clean function does not clean objects only strings
Original Reporter info from Mantis: GileBrisbane
-
Reporter name: Dragisa Maksimovic
Original Reporter info from Mantis: GileBrisbane
- Reporter name: Dragisa Maksimovic
Description:
TStringGrid.Clean cleans grid cells of text, not underlying objects.....
Either a line like " Objects[ aCol, aRow ]:= nil ; should be added to the function
for aCol:=StartCol to EndCol do
for aRow:= StartRow to EndRow do
if (CleanOptions=[]) or (CellToGridZone(aCol,aRow) in CleanOptions) then
begin
Cells[aCol,aRow] := TStringHelper.Empty ;
Objects[ aCol, aRow ] := nil ;
end ;
or additional function to clean objects should be introduced.....
Mantis conversion info:
- Mantis ID: 38512
- OS: Latest
- OS Build: Latest
- Platform: Mac
- Version: 2.0.10