Metrologic Optimus S Programming Manual page 214

"c" programming guide
Table of Contents

Advertisement

208
"C" Programming Guide For Optimus S/R
remove_index
6
7
8
10
13
14
17
20
21
create_index, remove_index
See Also
To delete an IDX file for a DBF file.
Purpose
Syntax
int remove_IDX (int DBF_fd, int key_number);
int DBF_fd;
int key_number;
Example
if (remove_index (DBF_fd, 1)) puts ("index is removed!\n");
Description
This routine deletes an IDX file (key_number) which is associated with a DBF
file (DBF_fd).
Return
If successful, it returns 1.
On error, it returns 0.
An error code is set to the global variable fErrorCode to indicate the error
condition encountered. Below are possible error codes and their interpretation.
Error Code
2
4
7
8
10
13
14
See Also
create_index, rebuild_index
Cannot create file. Because it is beyond the maximum
number of files allowed in the system.
Invalid file handle.
File not opened.
No free file space for rebuilding index.
Invalid value in argument: key_number
IDX file specified by key_number does not exist.
Invalid value in argument: key_offset, and/or key len.
Invalid value in argument: base_index
base_index does not exist.
/* file handle of the associated DBF file */
/* key number of the IDX file to be deleted */
Interpretation
File specified by DBF_fd does not exist.
File specified by DBF_fd is not a DBF file.
Invalid file handle.
File not opened.
Not enough free block.
Invalid value in argument: key_number
IDX file specified by key_number does not exist.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents