Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v5.5 - ax_tags() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_Tags()
 Get the names of all tags in a compound index (.cdx)
------------------------------------------------------------------------------

 Syntax

     AX_Tags( [<nFileOrder>] ) -> array

     <nFileOrder> An optional numeric value specifying the index file
     order position of the desired index to use.  The index file order
     position is based on the order in which the indexes are opened.

 Returns

     Returns an array of character string tag names contained in the .cdx
     file.  If the order is invalid or no index open, an empty array is
     returned.

 Description

     This function returns an array of tag names contained within the
     current or specified .cdx file.  If <nOrder> is not specified, the
     current index is used.  This function can also be used with .idx and
     .ntx files, and will return a single element array containing the name
     of the index without an extension.

 Example

     LOCAL nCount := 0, nElem := 0, aTags := {}

     USE test VIA "DBFCDXAX"       // Open TEST.DBF and TEST.CDX
     aTags := AX_Tags()            // Get array of TAG names
     nCount := AX_TagCount()       // See how many TAGS are in the CDX file

     FOR nElem := 1 TO nCount      // Loop through tags
        ? aTags[ nElem ]           // Display each TAG name
     NEXT


See Also: AX_TagCount() AX_TagInfo() AX_TagName() AX_TagNo()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson