![]() ![]() |
|
OPENINDEXThe OPENINDEX statement is used to open a particular index definition for a particular file. This index file variable can later be used with the SELECT statement.
COMMAND SYNTAXOPENINDEX filename,indexname TO indexvar {SETTING setvar} THEN|ELSE statements
SYNTAX ELEMENTSfilename should correspond to a valid file which has at least one index. If the OPEN statement fails it will execute any statements associated with an ELSE clause. If the OPEN is successful it will execute any statements associated with a THEN clause. Note that the syntax requires either one or both of the THEN and ELSE clauses. If the SETTING clause is specified and the open fails, setvar will be set to one of the following values: Incremental File Errors
EXAMPLES
|