Recent

Author Topic: tsqlquery.locate  (Read 5515 times)

thaimann

  • Jr. Member
  • **
  • Posts: 84
tsqlquery.locate
« on: November 08, 2008, 04:58:37 pm »
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.

Loesje

  • Full Member
  • ***
  • Posts: 168
    • Lazarus Support website
Re: tsqlquery.locate
« Reply #1 on: December 21, 2008, 11:26:33 pm »
fpc-version?

 

TinyPortal © 2005-2018