Syntax
IndexKey( nOrder ) --> cKeyExpArguments
nOrder
Optional order number or name.
Return value
Key expression text, or an empty string when unavailable.
Description
IndexKey() returns the expression used to calculate keys for the selected index.
Notes
An index must be open in the current work area.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "Key: " + IndexKey( 1 ) )
DbCloseArea()
RETURNOutput