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

ID: Q130242

3.00 WINDOWS

 kbprb

The information in this article applies to:

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 reference words: 3.00 VFoxWin KBCategory: kbprb KBSubcategory: FxprgGeneral

Keywords          : kberrmsg FxprgGeneral 
Version           : 3.00
Platform          : WINDOWS

Last Reviewed: May 22, 1998