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 v6.11 - ax_tagcount() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_TagCount()
 Count the number of tags in a compound index (.cdx) file
------------------------------------------------------------------------------

 Syntax

     AX_TagCount( [<nFileOrder>] ) -> numeric

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

 Returns

     Returns a numeric value representing the number of tags in the current
     or specified index.  If the order is invalid or no index is open, a
     zero (0) is returned.

 Description

     This function returns the number of tags within the current or
     specified index.  If the current or specified index is an .idx or
     .ntx, AX_TagCount() will return 1.

 Example

     USE test VIA "DBFCDXAX"            // Open table

     INDEX ON last TAG last             // Create one tag
     ? AX_TagCount()                    // Returns: 1

     INDEX ON state TAG state           // Create a second tag
     ? AX_TagCount()                    // Returns: 2

     AX_KillTag( "LAST" )               // Delete tag number 1 (LAST)

     ? AX_TagCount()                    // Returns: 1


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

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