Applies To:
  • CitectSCADA x.x

I have modified a dBASE file using DevAppend() and DevSetField(). Then on calling DevControl() to re-index the database table I get a hardware alarm "File Mode Invalid !". What is causing this error? 

This error occurs because no key has been specified in the header of the Device form. The DevControl() function needs the name of the field for the index. You specify the field for the index by putting the field in the header field, eg {NAME}.