[Lazarus] Locate Dataset

Darmawan Sugiarto darmawan_sugiarto at yahoo.com
Sat Dec 27 14:24:07 CET 2008


I already check the result is always FALSE; I used PostGreSQL 8.0 and WinXP Home Edition.
     ShowMessage(BoolToStr(SQLQuery1.Locate('kd_pic', Edit1.Text,[loCaseInsensitive,loPartialKey]),TRUE));


=============INTOSOFT============

           ALEXIO CHAOS

   Darmawan_Sugiarto at yahoo.com   

          Yahoo Messager

=================================

--- On Sat, 12/27/08, Joost van der Sluis <joost at cnoc.nl> wrote:
From: Joost van der Sluis <joost at cnoc.nl>
Subject: Re: [Lazarus] Locate Dataset
To: darmawan_sugiarto at yahoo.com, "General mailing list" <lazarus at lazarus.freepascal.org>
Date: Saturday, December 27, 2008, 3:33 AM

Op woensdag 24-12-2008 om 10:19 uur [tijdzone -0800], schreef Darmawan
Sugiarto:
> Why I can used function locate at dataset.
> this my code
> SQLQuery1.Locate('kd_pic',
> Edit1.Text,[loCaseInsensitive,loPartialKey]);

We need some more information to help you. What does happen if you use
the code above?

If the result of the Locate function is false, nothing is found. If it's
true it is found and the current record should be set to the found
record.

Did you check the result of the Locate?

Joost.






      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081227/8ee7af45/attachment-0007.html>


More information about the Lazarus mailing list