Subject Re: [IBO] how to use FocusedDataSource?
Author send2iwan
and the result always nil, why?

if i use Transaction.IB_Session.FocusedDataset in each form the
result is correct.

may be i am wrong about ib_session? each Transaction start ib_session
individual by automaticaly?

thanks for support.

--- In, Helen Borrie <helebor@...> wrote:
> At 16:41 22/08/2008, you wrote:
> >i have one main datamodule which contain ib_session,
> >ib_transaction each one. and my application using mdi form type.
> >
> >each form contains ib_transaction individual.
> >
> >the problem is when i want to check FocusedDataSource from
> >ib_connection.ib_session.FocusedDataSource Av comes.
> >
> >why? how to the best way to check FocusedDataSource?
> >
> >can someone help?
> Make sure you test first whether *any* datasource has announced,
> if connection.ib_session.FocusedDataSource <> nil then .....
> Helen