Subject | Re: [IBO] is dataset empty |
---|---|
Author | Gediminas |
Post date | 2004-01-05T15:12:42Z |
At 2004-01-04 23:55, you wrote:
query):
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
methods/atributes
--/ Gediminas /--
The Truth Is Out There
>For a TIB_Cursor, you can use the same strategy:It would be ok, but I'm working with the generic class (it handles cursor &
> MyCursor->APIFirst();
> bool CursorEmpty = MyCursor->Eof;
query):
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
methods/atributes
--/ Gediminas /--
The Truth Is Out There