[Q] how to find out if IZResultSet is empty
[Q] how to find out if IZResultSet is empty
i'm really sorry but cant find proper forum to post that question, is there any way how to find out if IZResultSet is empty without trying to itterate it?
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: [Q] how to find out if IZResultSet is empty
Hello DPStano, I seem to remember that there are member functions which tell you if you are before the first or after the last record? The following procedures should do the trick:
Code: Select all
{** Rows returned by SQL query. }
IZResultSet = interface(IZInterface)
[...]
function IsBeforeFirst: Boolean;
function IsAfterLast: Boolean;
function IsFirst: Boolean;
function IsLast: Boolean;