I'd like to set up a group of check boxes so that I can use a single clicked event and pass in an index to identify which check box is being clicked. I tried defining my own procedure in the form definition as such:
procedure clickedcheckbox2(sender:tobject; index:integer);
and then created the procedure. I've tried calling the procedure 2 ways:
I get the following error each time.
"clickedcheckbox2(self,1) is not a valid identifier" or "clickedcheckbox2(1) is not a valid identifier"
Can this be done and how?