Author: Tomas Rutkauskas
How to access components by their name property
Answer:
The following example uses the FindComponent method of Form1 to disable the first
10 SpeedButtons by name:
1 for i := 1 to 10 do2 with Form1.FindComponent('SpeedButton' + IntToStr(i)) as TSpeedButton do3 Enabled := False;