Difference between revisions of "DBF INDEXKEY()"

From Lianjapedia
Jump to: navigation, search
 
m (Text replace - "lianjaapi.h" to "lianja_api.h")
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
char *DBF_INDEXKEY(order)
 
char *DBF_INDEXKEY(order)
Line 27: Line 27:
  
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
lianjaapi_dbf_indexkey()
 
lianjaapi_dbf_indexkey()

Latest revision as of 06:55, 11 April 2013

PURPOSE

Return the index key expression

SYNONYM

api_dbf_indexkey()

SYNOPSIS

#include "lianja_api.h"
 
char	*DBF_INDEXKEY(order)
 
<input parameters>
int	order;		/* Index order		*/
 
<output parameters>
none

DESCRIPTION

The DBF_INDEXKEY() function will return the index key expression from the currently selected table for the specified index order as a character string. If no index is active then a NULL string will be returned.

The character string is returned in lower case.

EXAMPLE

The following example returns the index key expression for the master index.

#include "lianja_api.h"
 
lianjaapi_dbf_indexkey()
{
    char	*indexkey;
 
    indexkey = DBF_INDEXKEY( DBF_INDEXORDER());
 
    _retc( indexkey );
}

SEE ALSO

COMMAND(), DBF_ALIAS(), DBF_DBF(), DBF_DELETED(), DBF_FETCH(), DBF_FILTER(), DBF_FMT(), DBF_INDEXORDER(), DBF_NDX(), DBF_SEEK(), DBF_SELECT(), DBF_SKIP(), FIELD_COUNT(), FIELD_LOOKUP()