[Lazarus] locate command for dBase

Michael Van Canneyt michael at freepascal.org
Fri May 26 13:31:27 CEST 2023

On Fri, 26 May 2023, wkitty42--- via lazarus wrote:

> On 5/25/23 8:12 PM, john Ward via lazarus wrote:
>>    if
>>    temp.Locate('temp_no', (tempid),[loPartialkey])
>>    then
>>    begin
>>      showmessage('we found the field or Partial' + tempid);
>>      showmessage('current temp_no is ');
>>      tno := temp.FieldbyName('temp_no').asString;
>>     showmessage('tempno is = ' + tno);
>>      end;
>> The above code, executes the 'then', shows me what was searched for BUT 
> when a
>> data field is displayed, the original record is pointed to, NOT a record 
> further 
>> in the database.
> i don't see where you did a seek to the record you are trying to get to... 
> granted, it has been a long while since i did anything with FPC/Lazarus or an 
> dBase databases but it would seem there should be an obvious seek action... 
> maybe...

the locate() is a seek action.

But without more info/code it is difficult to give an answer to the OP's


More information about the lazarus mailing list