Mega Code Archive

 
Categories / Delphi / Examples
 

Componentprops

I have over 20 checkboxs in my form. How can I set all the checkboxX.Checked to false in the one statement ? Tks ! For X := 0 to YourForm.ComponentCount -1 do Begin If YourForm.Components[X] is TCheckBox then TCheckbox(Components[X]).Checked := False; End;