I’m trying to give the user selection group of 8 checkboxes (CheckBox1, CheckBox2, …etc), where the user can chose any combination from the eight check boxes. For each selection there will be different coding
For example
If CheckBox1.checked then
Begin
End
Else
If CheckBox1.checked and CheckBox2 .checked then
Begin
End
Else
If….
Please give any idea on how to do it , other than going through the If – else statements which are very nested in my case and I’m getting so confused
thank you
Update
Ok, let me clarify more. I’m building in the HR system- renewal contract process , the user can choose to renew employee’s contract only, or to renew it and give annual bonus, or to change the job-title with renewal, or give extra bonus with the annual raise… that is the logic and I have no idea what is the best way to implement it.
I would separate the logic into multiple Groups. On the primary GroupBox, have just the Renew CheckBox by itself (and whatever other non-Renew options you need). Then have a second GroupBox that has options for Give Annual Bonus, Change Job Title, and Give Extra Bonus with Raise. When the Renew CheckBox is checked, show the second GroupBox. When the Renew CheckBox is unchecked, hide the second GroupBox. That will present fewer options to the user, and makes sure that the user can only pick combinations that are valid for your requirements.