TAGNO( ) Function

Returns the index position for .cdx compound index file tags and open .idx single-entry index files.

TAGNO([IndexName [, CDXFileName [, nExpression | cExpression]]])

Parameters

  • IndexName
    Specifies the name of a .cdx compound index file tag or an open .idx single-entry index file for which TAGNO( ) returns the index position.

  • CDXFileName
    Specifies the name of a .cdx compound index file containing the name of the tag you specify with IndexName.

  • nExpression
    Specifies the work area of the table for which TAGNO( ) returns the index position for .cdx compound index file tags and .idx single-entry index files.

  • cExpression
    Specifies the alias of the table for which TAGNO( ) returns the index position for .cdx compound index file tags and .idx single-entry index files.

Return Value

Numeric

Remarks

TAGNO( ) returns 0 if a master index is not set (the table is in natural record number order) and the optional parameters are omitted.

Included for compatibility with dBASE.

See Also

Reference

INDEX Command

TAGCOUNT( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)