With TObject.Name('B'+IntToStr(1)) as tSpeedButton do
begin
..
end;
Or can I scan to find it?
thanks.
--
Sten Karsten Vartdal
stenvart...@online.no
http://home.sol.no/~stenvart/
Maintainer of Delphi Help Page
http://home.sol.no/~stenvart/delphi.html
try
with TSpeedbutton(Form1.FindComponent('B1')) do begin
(...)
end;
except
end;
when Form1 is the Owner of the Speedbutton
--
Andreas Klein
eMail: a-k...@metronet.de
Sten Karsten Vartdal schrieb in Nachricht <6jsc2a$f2b$3...@o.online.no>...
function FindComponent(const AName: string): TComponent;
should do the thing
>
>
Sten Karsten Vartdal wrote:
>
> On runtime, can I do anything like this:
>
> With TObject.Name('B'+IntToStr(1)) as tSpeedButton do
> begin
> ..
> end;
>
> Or can I scan to find it?
>
> thanks.
>
> --
> Sten Karsten Vartdal
> stenvart...@online.no
> http://home.sol.no/~stenvart/
>
> Maintainer of Delphi Help Page
> http://home.sol.no/~stenvart/delphi.html
--
Bruce Swart (br...@cm.co.za)
Systems Analyst
27-(0)31-3325541 (W)
27-(0)31-3325552 (F)
Computer Management (Pty) Ltd
85 Smith Street
Durban
South Africa
4001