Metrologic Optimus S Programming Manual page 206

"c" programming guide
Table of Contents

Advertisement

200
"C" Programming Guide For Optimus S/R
close_DBF
This routine adds a data record (member) to a DBF file (DBF_fd) and adds
Description
index entries to all the associated IDX files.
If the length of the added member is greater than that defined for the DBF
file (member_len in the create_DBF function), the member will be
truncated to fit in.
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
See Also
create_DBF, delete_member
Purpose
To close a DBF file and its associated IDX files.
int close_DBF (int DBF_fd);
Syntax
int DBF_fd;
Example
if (close_DBF (DBF_fd)) puts ("DBF file is closed!\n");
This routine closes a previously opened or created DBF file (DBF_fd). It also
Description
closes all the associated IDX files.
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
open_DBF
See Also
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.
No free file space for adding members.
/* file handle of the target DBF file */
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents