Right, I'm creating a hangman game using VLE Forms in Turbo Delphi 2006.
What I want to do it write a generic event handler so that I don't need to have 26 EH's doing the same thing when the only difference is the caption on the button that will be clicked.
I know theres a way of doing this, and it's got something to do with
if ????? (Sender as TButton).Caption ??? then ????
Question
donald1804
Right, I'm creating a hangman game using VLE Forms in Turbo Delphi 2006.
What I want to do it write a generic event handler so that I don't need to have 26 EH's doing the same thing when the only difference is the caption on the button that will be clicked.
I know theres a way of doing this, and it's got something to do with
if ????? (Sender as TButton).Caption ??? then ????
but thats all I know.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts