Sign in Join

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

Mailing lists / lazarus / 2008-11

tsqlquery.locate

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Terry A. Haimann
When I run:
Var
Fnd: Boolean;
Begin
Fnd := MyQuery.Locate('MyIdx', 'MyValue', []);
If Fnd = True Then
ShowMessage('Record Found')
Else
ShowMessage('Record Not Found');

I get a message "Record Found" but the record doesn't change in the form. Now in Delphi when I used the locate method, I would put in the third parm:

[loPartialkey]

But Lazarus gives me an error when I do that "Identifier not found".

Oh, I am running FC8 and Lazarus 0.9.26 and am using MySQL.

* I tried posting in the forums first, but that message has had no response for days.

Reply by email