View Single Post
Old 04-23-2006, 12:44 AM   #5 (permalink)
nesvarbu
Registered User
 
Join Date: Aug 2004
Posts: 6
nesvarbu is on a distinguished road
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?
}
nesvarbu is offline   Reply With Quote