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. _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus