Search code examples
delphiquickreports

I want to Remove all the controls from the "Detail Band", which is a control of "Quick Report" in DELPHI


Possible Duplicate:
Remove/ Destroy all the control from quick report detail band

Some user say this is #"incomplete question" #, but is a very clear question. I want to Remove all the controls from the "Detail Band", which is a control of "Quick Report" in DELPHI.


Solution

  • I guess something like this would work...

    for i := DetailBand.ControlCount - 1 downto 0 do
      DetailBand.Controls[0].Free;
    

    But I wrote it from memory... Not sure if QR*** components are TControl descendants.