Board index » delphi » cannot access index field error message

cannot access index field error message

Using a D3 app, I'm trying to edit existing Paradox table records.  I
set the Ttable index to the secondary index name (I've also tried
setting the index based on the index's field name, with the same
result).  I'm saying:

if FindKey([variable]) then
begin
  Edit;
  Field2.Value := variable2;
  Post;
end;

It is apparently the FindKey method which is throwing the exception,
and the message is:

Cannot access index field 'FieldName'

Anybody ever seen this one before?

GregMau...@null.net

 

Re:cannot access index field error message


NEVERMIND.

When I made the indexed field persistent using the fields editor, the
program stopped barfing.

GM

Other Threads