I'm using Delphi XE2 and I'm having problems with TClientDataset.Locate method. It will only locate if loPartialKey
is passed as param. In other case, it will not find the record, even though the record definitely exists. Here is a code snippet:
result := lSysEq.Locate('IDIV;CODE_EQ',VarArrayOf([aDiv,aEqCode]),[]));
Where aDiv
and aEqCode
are string types and lSysEq
is the TClientDataset
. I don't believe I'm doing anything wrong and I've broken down to the most basic application. Still I cannot locate the proper record.