I'm using borland c++ 6.
For example I have 20 checkboxes, and I have this function:
Code:
void Test(int id) // where id is the number of checkbox
{
//here I need to check the checkbox, for example if id is 17 then
//the code should be CheckBox17->Checked = true;
//the problem is that I don't know how many checkboxes are so
//I can't use 'if' statement or 'case' statement
//the code should be smth like: CheckBox+id->Checked = true;
//I know its not correct but hope you get the question?
}