DataSet SearchRecord & Current Record Problem

sentimex

Member²
Hi,

I'm having an issue with DataSet SearchRecord function.

It seems like even thought SearchRecord finds the record, it doesn't get updated to CURRENT RECORD :(

Code:
if SearchRecord('RID', RowID, [srFromBeginning, srIgnoreCase]) Then
begin

   // This is not the value from current record
   showmessage(BuildContentOracleDataSet1S_FILENAME.Value);

end;

Am I doing something wrong?

Thanks.
Regards.
Dan.
 
Last edited:
I added this code to a button on the DeptEmp demo project:

Code:
if DeptDataSet.SearchRecord('DEPTNO', 20, [srFromBeginning, srIgnoreCase]) Then
  begin
    // This is the value from current record
    showmessage(DName.Value);
  end;
It seems to work just fine. Can you verify?
 
Back
Top