Subject | Re: [IBO] Correct way to use TIB_Cursor |
---|---|
Author | William J Hill |
Post date | 2003-08-12T20:07:13Z |
Hello Peter,
1) Dont use .Open with a cusor, use .First instead.
2) If this query is live then make sure keyLinks are set.
hth,
William
> select * from product where BARCODE = :BARCODEYes, but
>
> With Product_IB_Cursor do
> begin
> Close;
> Prepare;
> ParamByName('BARCODE').AsString := Barcode;
> Open; // run query
> end;
>
>
> It does work, please can someone confirm that this is the recommended way
> to do this type of thing before I move onto edits.
1) Dont use .Open with a cusor, use .First instead.
2) If this query is live then make sure keyLinks are set.
hth,
William