[Lazarus] Dataset.Locate and null fields

silvioprog silvioprog at gmail.com
Tue May 28 00:19:50 CEST 2013


Hello,

I have a dataset just with the following records:

id | name
-------------
 1 |  A
 2 |  B
..
 N | N

There are no records with "name" field null, but, If I find with ...:

q.Locate('name', null, []);

... it returns True, because my dataset have some records.

Is there any option that returns True only if the record exists?

Thank you!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130527/739a6170/attachment-0002.html>


More information about the Lazarus mailing list