Morning all.
I want to pick up a component reference from a sent value, but dont want to
re-write my code to do it.
I guess the normal way would be to:
Txform.alterbuttonstate(sender:tobject);
begin
with sender as tbutton do
begin
font.style:=fsbold;
end;
end;
What I would like to do is:
Txform.alterbuttonstate(value:word);
begin
button[value].font.style:=fsbold; //invalid of course
end;
Any way to do this?
Cheers,
Al+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz