ADD_INDEXFILE
|
Syntax: |
ADD_INDEXFILE(<Name of Index File>) ON
ERROR … END <Name of Index File> =
<STRING-EXPRESSION> |
||
|
Meaning: |
ADD_INDEXFILE makes an Index File available
in the program, which is not being used. In order to make this possible the
file library EBUSFILE must be accessible while the program runs. In the case of an error the block ON ERROR ...
END is executed. The structure (field structure, keys etc.) of
the Index File is read from the file library EBUSFILE. The file library EBUSFILE
is itself an Index File. The file specification of the Index File EBUSFILE
must be included in the current file library, otherwise a program cannot be
generated if the instruction ADD_INDEXFILE is used. If no error occurs, the Index File
<indexfilename> can be opened with IOPEN. All commands that refer to
Index Files can be used. |
||
|
Parameter: |
|
||
|
Sample: |
FILE$ =
"CUSTOMER“ ADD_INDEXFILE(FILE$) ON
ERROR ...Error... END OPENMODE(FILE$) = 1 /* Multi-user access PATH(FILE$) = "C:\Daten" IOPEN(FILE$) ON
ERROR ...Error... END INITIALIZE FILE$ START
FILE$ ON ERROR ...Error... END ... ICLOSE(FILE$) REMOVE_INDEXFILE(FILE$) ON
ERROR ...Error... END |
||
|
See also: |
|