Subject Re: [IBO] is dataset empty
Author Gediminas
At 2004-01-04 23:55, you wrote:
>For a TIB_Cursor, you can use the same strategy:
> MyCursor->APIFirst();
> bool CursorEmpty = MyCursor->Eof;

It would be ok, but I'm working with the generic class (it handles cursor &

bool CanEdit(TIB_Dataset * pDataset)

If I would use pDataset->First, then in case with a query, cursor would be
positioned to the first record - that's bad, so need other solution.
I have parametrized query, which gets record when param is got. I need to
protect case, that edit couldn't be called before any record was fetched
CanEdit() is used for cursors & queries - it must deal with the tib_dataset

--/ Gediminas /--
The Truth Is Out There