COPY TAG Command
Creates a single-entry index (.idx) file from a tag in a compound index file.
COPY TAG TagName [OF CDXFileName] TO IndexFileName
Parameters
TagName
Specifies the tag used to create the single-entry .idx file.OF CDXFileName
Specifies the compound index file containing the tag. Include this clause if there are tags with the same names in the open compound index files. If you omit OF CDXFileName, Visual FoxPro looks for the tag first in the structural index file. If it isn't found there, Visual FoxPro searches all the open non-structural compound index files.TO IndexFileName
Specifies the name of the single-entry .idx file to create.
Remarks
Use COPY TAG to create a new single-entry .idx file from a tag in a .cdx compound index file.
The compound index file from which you create the single-entry .idx file must be open. Structural compound index files are automatically opened when you open a table. Non-structural compound indexes must be explicitly opened with USE ... INDEX or SET INDEX. For more information about compound index files, see INDEX Command.
Use COPY INDEX to create tags in compound index files from single-entry .idx files.