|
Opens the index files specified in INDEXES for an already open database with NAME alias. If the NAME attribute is omitted, the index files are opened for the primary database.
The first comma separated file listed becomes the main index for the database. <MvSETINDEX> closes any currently open index files for this database alias before opening the specified index files. After opening, the record pointer moves to the first record in the database (in indexed order). <MvOPEN> and <MvMAKEINDEX> will also open listed index files for the specified or primary database. Attributes
ExamplesOpen an index. Example:<MvSETINDEX NAME="employees" INDEXFILE="/myfiles/emp_salary.mvx"> In this example the expression in INDEXFILE results in the comma separated string "/myfiles/emp_salary.mvx, /myfiles/emp_names.mvx". Both indexes will be opened. The first becomes the main index. Both will be updated when the database is altered. Example:<MvASSIGN NAME="l.path" VALUE="/myfiles/"> <MvSETINDEX NAME="employees" INDEXFILE="{ l.path $ 'emp_salary.mvx, ' $ l.path $ 'emp_names.mvx' }">
|