INDICES() |
![]() ![]() ![]() |
The INDICES() function returns information about alternate key indices.
Format
INDICES(file.var) To retrieve a list of indices INDICES(file.var, index.name) To retrieve information for a specific index
where
The first form of the INDICES() function returns a field mark delimited list of alternate key index names for the file referenced via file.var.
The second form of the INDICES() function returns a dynamic array resembling a dictionary record for the index named by the index.name argument. This dynamic array corresponds to the original dictionary record used to create the index except that field 1 is extended to include additional flags as a multivalued list.
Example
INDEX.NAMES = INDICES(FVAR) NUM.INDICES = DCOUNT(INDEX.NAMES, @FM) FOR I = 1 TO NUM.INDICES NAME = INDEX.NAMES<I> CRT NAME : ' Type ' : INDICES(FVAR, NAME)[1,1] NEXT I
The above program displays a list of alternate key index names and their type. |