Also you'll have to check its class ie if (Sender is TDBText) then with TDBText(Sender) do....
Neven ----- Original Message ----- From: "Conor Boyd" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 10:19 AM Subject: RE: [DUG]: Name of the calling control > Unless I misunderstand you, does the Sender parameter not give you what you > want? > > You might need to cast it to the appropriate type (TDBText or whatever) > inside your event handler. > > Cheers, > > Conor > > -----Original Message----- > From: Steven Knight [mailto:Steven.Knight@;ecan.govt.nz] > > Please help me over a mental block. > > I want to create a general purpose procedure to update the data associated > with a DBText control. > It is activated by double click on the control. A number of controls share > the same double click event. > > How do I refer to the control that the double click originated from? > > Steven Knight > > > Help with home heating? Find out more: > http://www.ecan.govt.nz/Air/clean-air-now/chp-update.html > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > The contents of this email and any attachments are not formal > policy of Environment Canterbury, unless otherwise stated. > ********************************************************************** > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/