Microsoft KB Archive/130242

From BetaArchive Wiki

PRB: Error: Index Tag Not Found After DELETE TAG ALL

'

ID: Q130242



The information in this article applies to:


  • Microsoft Visual FoxPro for Windows, version 3.0





SYMPTOMS

After issuing the DELETE TAG ALL command, you receive this error:

Index Tag Not Found.



CAUSE

The error occurs because SET COMPATIBLE is set to DB4. dBASE does not support the ALL clause on the DELETE TAG command. The ALL clause on the DELETE TAG command is unique to FoxPro.



WORKAROUND

To work around this issue, SET COMPATIBLE to OFF, or explicitly identify the tag name with the DELETE TAG command. For example, issue one of the following commands:

   SET COMPATIBLE OFF 

-or-

   DELETE TAG tagname 



STATUS

This behavior is by design.



MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a Visual FoxPro table:

       CREATE TABLE mytab (cField1 C(20)) 
  2. Index on cField1:

       INDEX ON cField1 TAG cField1 
  3. Set Compatible to dBASE:

       SET COMPATIBLE TO DB4 
  4. Attempt to delete all tags:

       DELETE TAG ALL 

The error message "Index Tag Not Found." is now displayed.

Additional query words: VFoxWin

Keywords : kberrmsg FxprgGeneral
Version : WINDOWS:3.0
Platform : WINDOWS
Issue type :
Technology :


Last Reviewed: February 9, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.


Article ID: Q130242

Last Reviewed:
February 9, 2000