Integer i; for (i = 0; i < this->ComponentCount; i++) { dynamic_cast<TCheckBox*>(Components[i])->Checked = True; }