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_isunique() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_IsUnique()
 Returns whether the specified index order was built with the "unique" clause
------------------------------------------------------------------------------

 Syntax

     AX_IsUnique( [<cOrder>|<nPosition> ], [<cCDXName>] ) -> logical

     <cOrder>  A literal filename or character string specifying the
     name of the order. Using the order name is the preferred method
     since the position may be difficult to determine using
     multiple-order index files. If omitted or NIL, the controlling
     order is assumed.

     <nPosition>  The number representing the position of an order in
     the order list. If omitted or NIL, the controlling order is
     assumed.

     <cCDXName>  The name of an index file, including an optional
     drive and directory (no extension should be specified). Use this
     argument with <cOrder> to remove ambiguity when there are two or
     more orders with the same name in different index files.

 Returns

     Returns a logical .T. if the specified index order was created
     with the "unique" clause, otherwise, a .F. is returned.

 Description

     This function allows you to find out the UNIQUE status of
     a particular index order.

 Example

     USE test VIA "DBFCDXAX"
     INDEX ON last  TAG last UNIQUE
     INDEX ON state TAG state
     INDEX ON age   TAG age UNIQUE

     ? AX_TagUnique( 1 )        // Returns .T.
     ? AX_TagUnique( 2 )        // Returns .F.
     ? AX_TagUnique( 3 )        // Returns .T.
     ? AX_TagUnique( "LAST" )   // Returns .T.


See Also: AX_TagInfo()

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