How to get a dynamically created timer’s tag in the function which handles its expiry?
procedure TMainForm.TimerExpired(Sender: TObject);
begin
// how do I get the tag here?
And who is Sender? The main form?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sender is the pointer to your timer object, which invoke this event handler.
So
TTimer(Sender).Tagwill be the tag value of your timer.