I want to be able to use a piece of code for several controls and use the 'Sender' information to accomplish this.
The code looks like this...
>>procedure TMyForm.udnLabelWidthUpClick(Sender: TObject);
>>txtLabelWidth.Text := Floattostr(strtoFloat(txtLabelWidth.Text) + (1 / MeasureScale));
I would like to be able to access the 'txtLabelWidth' control using the name of the 'UpDown' control. i.e. removing the first three letters of the 'udnLabelWidth' and adding 'txt' to it. And then use the string to access the control.
Thanks in advance