Difference between revisions of "INDEXKEY()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Class) |
Yvonnemilne (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return the index key expression | Function to return the index key expression | ||
Line 6: | Line 4: | ||
==Syntax== | ==Syntax== | ||
− | INDEXKEY(<expN>) | + | INDEXKEY([<expN>]) |
Line 14: | Line 12: | ||
==Description== | ==Description== | ||
− | The INDEXKEY() function is synonymous with the KEY() function. The INDEXKEY() function returns the index key expression for index <expN> | + | The INDEXKEY() function is synonymous with the KEY() function. The INDEXKEY() function returns the index key expression for the master index or index <expN> if specified. A null string is returned if no such index exists. The INDEXKEY() function always returns a character string in lower case. |
Line 25: | Line 23: | ||
? indexkey(indexorder()) | ? indexkey(indexorder()) | ||
dtos(date_paid) + str(amo_paid,11,2) | dtos(date_paid) + str(amo_paid,11,2) | ||
− | index on lower(left(company,20)) | + | index on lower(left(company,20)) tag company |
− | ? indexkey( | + | ? indexkey() |
lower(left(company,20)) | lower(left(company,20)) | ||
</code> | </code> | ||
Line 32: | Line 30: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Indexing]] | [[Category:Indexing]] | ||
[[Category:Indexing Functions]] | [[Category:Indexing Functions]] |
Latest revision as of 13:05, 7 January 2010
Purpose
Function to return the index key expression
Syntax
INDEXKEY([<expN>])
See Also
DBF(), FCOUNT(), FIELD(), FILTER(), FMT(), INDEXEXT(), INDEXORDER(), LEN(), NDX()
Description
The INDEXKEY() function is synonymous with the KEY() function. The INDEXKEY() function returns the index key expression for the master index or index <expN> if specified. A null string is returned if no such index exists. The INDEXKEY() function always returns a character string in lower case.
Example
use accounts index acc_no, date_paid ? indexkey(1) acc_no + dtos(date_rec) set order to 2 ? indexkey(indexorder()) dtos(date_paid) + str(amo_paid,11,2) index on lower(left(company,20)) tag company ? indexkey() lower(left(company,20))
Products
Recital Server, Recital