Newbie: Group struggle
Posted: Sun May 06, 2007 6:54 am
I have a group containing 10 vertically oriented check boxes and I also have a list with <n> strings.
Every string in the list is to be the caption of the corresponding checkbox by position, i.e. the string in position 4 provides the caption for the fourth checkbox from the top. The checkboxes are named CB1 through CB10.
If there are less than 10 entries in the list, I'd like to hide the "extra" checkboxes, i.e. if the list contained only 9 entries then the bottom most checkbox would be hidden.
I have a feeling that this should just take a handful of lines, yet I can only come up with ugly convoluted code...
Would somebody give me hand?
TIA,
Kai
Every string in the list is to be the caption of the corresponding checkbox by position, i.e. the string in position 4 provides the caption for the fourth checkbox from the top. The checkboxes are named CB1 through CB10.
If there are less than 10 entries in the list, I'd like to hide the "extra" checkboxes, i.e. if the list contained only 9 entries then the bottom most checkbox would be hidden.
I have a feeling that this should just take a handful of lines, yet I can only come up with ugly convoluted code...
Would somebody give me hand?
TIA,
Kai