March 2nd, 2004, 02:22 PM
To whom it may concern:
I have a group of Checkboxes on a form. I would like to find out how I can detect whether a checkbox has been selected or not within that grouping. For my purposes, I have to select one or more check boxes to continue with a process else display a message stating that I need to select on one or more checkboxes to continue, etc.
Appreciate anyones help.
March 2nd, 2004, 08:39 PM
Assuming your checkboxes are named Checkbox1, Checkbox2 etc., the simplest way would be to do this:
if (not CheckBox1.Checked) and (not Checkbox2.Checked) and
(not CheckBox3.Checked) and ... (not Checkbox8.Checked) then
ShowMessage('Please check a box')
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
March 3rd, 2004, 11:31 AM
Hey, thanks for the reply! I'll give it go!!!