Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xindexkey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XINDEXKEY()
Get field list for specified index number

Syntax
N_XINDEXKEY([<nIndex>])

RDD Option
Use INDEXKEY()

Argument
<nIndex> is the number of an index in the current table.

Returns
N_XINDEXKEY() with no arguments returns the number of indexes.

N_XINDEXKEY(<nIndex>) returns the name of the Nth index in the current 
table. Multiple field names are separated by commas ( , ).

Remarks
The Clipper INDEXKEY() function returns the index expression, while this 
function returns the list of fields in the index.

Example
N_XSELECT('patients')
? N_XINDEXKEY()
3
? N_XINDEXKEY(1)
ID
? N_XINDEXKEY(2)
LAST_NAME, FIRST_NAME


See Also: N_XORDER()

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