Mega Search
23.2 Million


Sign Up

Make a donation  
Read Sender information  
News Group: embarcadero.public.delphi.oodesign

I am trying to read the information that comes back from the sender object.  I have 64 buttons and am simply running one procedure for all 64 buttons and need to get the number that's associated with the button being pressed (see example).  Sounds simple enough but I must be missing something.  Thanks for any help that you can give.

procedure TfrmTest.AutoAuthorize;
begin
if Sender = frmTest.Button1 then AutoAuth('01');
end;

I just want to read the button (1) portion to pass that parameter along to autoauth procedure.  Hopefully I explained this.

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 4-Jul-2014, at 5:54 PM EST
From: Al Herman
 
Re: Read Sender information  
News Group: embarcadero.public.delphi.oodesign
Thanks so much, that solved the problem very quickly.  Thanks again for all the help I get from this forum

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 6-Jul-2014, at 10:29 PM EST
From: Al Herman