Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

Dataset.Locate and null fields

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

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.freepascal.org/pipermail/lazarus/attachments/20130527/739a6170/attachment-0001.html>

Reply by email