Argox PA-20 Programming Guide Bedienungsanleitung Seite 58

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 130
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 57
PT-20 Programming Guide
56
filepoint = _fopen(“c:\\data\\data.txt”,”r+”);
Ini_Search(filepoint, &fsearch, ausFielddlt, NULL, 0, 1, 0, 5, 0);
Example 2: Regular field length
_DBMS fsearch;
_TFILE *filepoint;
unsigned char field_size[5]={6,5,4,5,6};
unsigned char keyfield[2] = {0, 2};
int keyfieldNum = 2;
filepoint = _fopen(“c:\\data\\data.txt”,”a+”);
Ini_Search(filepoint, &fsearch, field_size, keyfield , keyfieldNum, 0, 26, 5,
0);
Includes
#include “DBMS.h ”
Description
This function can initialize a work of advance searching file. After inserting
every argument, you can use _ DBMS* F _ Search to search files.
When using this function to initial a DBMS search, you have to take care
for:
1. This function cannot support Variable field length search.
2. When initial, we will make a index file in C disk, so it has to take a few
time.
3. The index filename will be similar to origin file. For example, the
lookup file name is AAA.txt, the index filename will be AAA.idx. So,
you have to check the duplicate filename to avoid error fo making
index file.
4. You have to reserve some space for the function to make index file in
C disk.
Several introduces the argument as follows:
argument
description
_TFILE* filehd
An opened file handle.
_DBMS* F_Search
One of _DBMS start address has already
declared. Originally after the beginning
success this argument was used for written
into various kinds of search.
Seitenansicht 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 129 130

Kommentare zu diesen Handbüchern

Keine Kommentare