Subject Learning IBO & Delphi
Author Guillermo Nájar-Arreola
Hi,

Following the IBObjects Getting Started Guide (Working the ropes), I wrote
in my sample application the routine to initialize the TIB_Query components
and activate them:

with DataModule_LyR do
begin
if not ib_connection_lyr.Connected then
ib_connection_lyr.Connect;

for i:= 0 to ComponentCount - 1 do
if Components[i] is TIB_Query then
with Components[i] as TIB_Query do
if not Active then
begin
prepare;
Open;
end;
end;
end;

Without this routine my sample app works fine; including it I get a compiler
error: "Undeclared Identifier 'TIB_Query'". Its kind of wired since in my
Data Module I have declarations like this:

IB_qry_proveedor: TIB_Query;
IB_ds_Proveedor: TIB_DataSource;
IB_Connection_LyR: TIB_Connection;
ib_qry_TipoProveedor: TIB_Query;

Any ideas?

Thanx
Guillermo Najar