Subject Re: [IBO] IB_Grid / button
Author Nico Callewaert
Thanks for the info !

Regards, Nico

----- Original Message -----
From: "Cagatay Tengiz" <tmd0307@...>
To: "IBObjects" <IBObjects@yahoogroups.com>
Sent: Saturday, October 26, 2002 11:28 AM
Subject: Fw: [IBO] IB_Grid / button


> I've tested what I wrote and saw that I've made mistakes... Corrections
> below :
>
> ----- Original Message -----
> From: Cagatay Tengiz
> To: IBObjects@yahoogroups.com
> Sent: Saturday, October 26, 2002 11:38 AM
> Subject: Re: [IBO] IB_Grid / button
>
> <snip>
>
> >If you have multiple TIB_Edits on your grid then I think you can
> distungiush
> >which edit's button was pressed by using below code (only a assumption,
not
> >tried yet)
> > if (sender is TIB_Edit) then begin
> > if (sender as TIB_Edit).Name = YOUR_TIB_EDIT_NAME
>
> Above code is totally wrong... Right version is (tested and applied)
>
> if YOURGRID.SelectedField.FieldName = YOUR_TIB_EDIT1.DataField then begin
> {do sth}
> end;
>
> if YOURGRID.SelectedField.FieldName = YOUR_TIB_EDIT2.DataField then begin
> {do another thing}
> end
>
>
>
> Cagatay Tengiz
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>