Alistair,

I am still not sure what you are trying to achieve, but using tags is 
one way.  Another is to put the buttons in an array.

Regards

On 30 Jul 99 at 8:55, Alistair George wrote:

> 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
> 
Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to