I am looking for some BCB code to iterate over the controls on a form and get some information about them.
I tried using myForm->ControlCount and
myForm->ControlCount
This may help you too:
for (int index = 0; index < ControlCount; index ++) { if(Controls[index]->InheritsFrom(__classid(TCustomEdit))) { TCustomEdit *edit = (TEdit*) Controls[index]; edit->Text = "Ok"; } }