Hi!
I use latest Lazarus + latest UniDAC. I created simple app with one UniConnetion, one UniQuery objects (I tried UniTable too - result was the same) and one UniProvider. I testes it with mySQL and MSSQL. The problem is that after opening any table or query I cannot use datasets methods: FindFirst and FindNext, they always return false. In the same time RecordCount shows proper number of rows, I can also see records in Grid. What am I doing wrong?
UniDAC + Lazarus - FindFirst and FindNext always return false
Re: UniDAC + Lazarus - FindFirst and FindNext always return false
Ok, I found solution, UniDAC seems to use another set of methods to iterate through datasets:
Anyway, it would be nice if methods that are implemented, but do not work as user may expect, would rise exception when called.
Code: Select all
DataSet.First;
while not DataSet.EOF do
begin
// do something
DataSet.Next;
end;
Re: UniDAC + Lazarus - FindFirst and FindNext always return false
Thank you for the information. We have reproduced the problem and it will be fixed in the next build.