Indexes
An index is a structure that sorts all the key values for a specific key. Btrieve access permits overlapping indexes (an index that includes a partial column). Relational access through ODBC does not permit overlapping indexes. (You can create an overlapping index with the File Information Editor, which you can display by clicking the Goto Editor button.)
Index Tasks
You perform the following tasks pertaining to indexes:
Creating Indexes
You cannot create an index for a file unless the file has at least one key defined. You can create a key with the File Information Editor (see File Information Editor).
1
Click Index > Create from the main menu, which opens the Create Index dialog box.
Figure 28 Create Index Dialog Box
2
 
Lists the key numbers defined in the File Information Editor.
Click Refresh Lists to display the key number defined for the file. If the file contains a system-defined log key, this list includes SYSKEY.
Click Refresh Lists to display the key numbers available (that is, not defined for the file). Highlight the key number you want to use when creating the index.
3
You can click Go To Editor to display the File Information Editor dialog box, which shows more complete information about the key. You can click Refresh Lists to read key information from the data file and refresh the Existing Key Numbers in Data File and Key Number to Use For Create lists. You must click Refresh Lists before you can create an index.
4
When you have completed the Create Index dialog box, click Execute to create the index. The amount of time required to create the index depends on how much data the file contains.
Dropping Indexes
Ensure that you understand the access performed by an application program before dropping an index. Certain functions fail (such as GET NEXT) if a required index is missing. This can result in an application program not functioning correctly.
1
Click Index > Drop from the main menu. The Drop Index dialog box appears.
Figure 29 Drop Index Dialog Box
2
 
Click Refresh List to display the key number defined for the file. Highlight the number of the key whose index you want to drop. If the file contains a system-defined log key, this list includes SYSKEY, which you can select to drop the system-defined log key from the file.
3
Click Refresh List to get the key information from the file you have specified.