Subject | RE: [IBO] TIB_Cursor . . . IsEmpty? |
---|---|
Author | Anthony Tanas |
Post date | 2006-09-09T23:37:27Z |
OK, yes thanks that answers it. :)
I noticed with Tquery when I tested EOF I didn't allways get true if empty
and so I started using IsEmpty (and still use it with TIBOQuery).
Was it necessary for me to call First before testing EOF with Tquery also?
Thanks,
Anthony
I noticed with Tquery when I tested EOF I didn't allways get true if empty
and so I started using IsEmpty (and still use it with TIBOQuery).
Was it necessary for me to call First before testing EOF with Tquery also?
Thanks,
Anthony
> Anthony Tanas wrote:
> > What should I use for the equivalent of Query.IsEmpty with
> TIB_Cursor?
> >
> > Thanks.
>
> With TIB_Query I normally do
>
> IB_Query1.Open;
> while not IB_Query1.eof then...
> IB_Query.Close;
>
> With TIB_Cursor I do
>
> IB_Cursor1.First; //Someone told me to use First rather than
> open while not IB_Cursor1.eof then...
>
> //And that there is no point in calling Close since there is
> nothing //left to close when a TIB_Cursor reaches eof.
>
> Does this answer your question?
>
> HTH,
> Set
>
>
> ______________________________________________________________
> _____________
> 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
>
>
>
>
>
>
>
>
>
>
>