Subject Re: [IBO] ib_query and ib_datasource
Author Helen Borrie (TeamIBO)
At 03:01 PM 22-03-02 -0300, Ronaldo Rezende wrote:
>I have configure the ib_query and ib_datasource and set up the components in
>a form. I set the active property to true and when my program show the form,
>the components (ib_edits ,bars) are disables. Is it possible that the query
>is to be close in this process ? It's a simple form, there isn't any other
>code.

It's more likely the query isn't open yet.

In FormCreate, you will need to perform the Connect for the ib_connection:
...
if not IB_Connection1.Connected then
ib_Connection1.Connect;
if not IB_Query1.Active then
IB_Query1.Open;
..and so on...


regards,
Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com