Returns index expression of an open single-entry .idx index file or index expressions for tags in compound .cdx index files.
Syntax
SYS(14, nIndexNumber [, nWorkArea | cTableAlias])
Returns
Character
Arguments
nIndexNumber
Specifies which index expression to return from the open index files or tags. SYS(14) returns index expressions from open index files and tags in the following order as nIndexNumber increases from 1 to the total number of open single-entry files and structural compound and independent compound index tags:
The empty string is returned if nIndexNumber is greater than the total number of open single-entry files and structural compound and independent compound index tags.
nWorkArea | cTableAlias
Specifies a work area number or work area alias. If you omit nWorkArea and cTableAlias, index expressions are returned from index files open in the current work area. If a table doesn't have the alias you specify, Visual FoxPro generates an error message.
Remarks
An index expression is specified when an index file or tag is created with INDEX. The index expression determines how a table is displayed and accessed when an index file or tag is used to order the table.
For more information on index expressions and creating index files and tags, see INDEX. SYS(14) is similar to the KEY( ) function.
USE and SET INDEX both support an index file name list that lets you open index files for a table. Any combination of single-entry index files, structural compound or independent compound index file names can be included in the index file list.