Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_ndx( [ <nindex> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_NDX( [ <nIndex> ] )


Parameters

<nIndex>
Ordinal number (1-15) of index file open in the currently selected work 
area.


Returns

If the function is called with no argument, it returns the number 
(numeric data type) of index files open in the currently selected work 
area. If no index files are open, it returns zero.

If the function is called with a numeric argument, n, it returns the 
name (character data type) of the nth index file open in the current 
area. If no index files are open, or if n is greater than the number 
open, the function returns a null string.


Description

N_NDX(<nIndex>) works similarly to the dBase NDX() function. The number 
<nIndex> refers to the order in which index files were open, not the 
current SET ORDER.


Example

USE Customer INDEX Custno, Custname
? N_NDX()
2

? N_NDX(1)
CUSTNO.NTX
? N_NDX(3)
<null string>




See Also: N_DBF() N_DBT()

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