Subject Re: [IBO] Focus of TIB_Datasource
Author Helen Borrie
At 01:32 PM 6/08/2004 +0200, you wrote:
>Hi,
>
>I use the AnnounceFocus method of TIB_Datasource and the
>TIB_Session.FocusedDataSource property to do some stuff
>which needs to know which Datasource is currently active.
>
>During my work, I thought it would be great if there was
>a OnFocusedDatasourceChange event of TIB_Session which is triggered
>when a new Datasource is activated. Unfortunately, I could not
>find anything on this topic in the help files.
>
>Is there a way to do this?

Yes, read the IB_Session.FocusedDatasource property of any
TIB_Component. It returns a TDatasource object, so you can refer
generically to the properties of the focused datasource.

Helen



>TIA,
>
>Christian
>
>
>
>
>___________________________________________________________________________
>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 !
>Yahoo! Groups Links
>
>
>
>