View Single Post
Old 04-23-2006, 05:54 AM   #6 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 733
DJMaze is on a distinguished road
Put all checkboxes in a TList and run thru it.
Code:
TList checkboxes = new TList()
TCheckbox cb;
for (int i=0; i<10; ++i) {
    cb = new TCheckBox();
    checkboxes->ad(cb);
}

for (int i=0; i<10; ++i) {
    cb = (TCheckBox)checkboxes->get(i);
    cb->Checked = true;
}
DJMaze is offline   Reply With Quote