
PT-20 Programming Guide
recordno, char* R_Buffer, int flag);
char str[8]=”abcdefg”,str_buffer[60];
SearchField_GR(&fsearch, str,0,0, str_buffer,FORWARD);
This function can search and contrast the data of appointed field. After
success, reading the record which includes this field.
Several describe the argument as follows:
The file’s searching structure that has been
initialized.
String data wanted to match.
Begin to search from which data.
After contrast success, it will write record
which included this field into buffer.
FORWARD => Search from forward to
backward
BACKWARD => Search from backward to
forward
As success of searching, the file index will
stay in successful record front. When
search defeat, the file index will not be
moved.
When “R _ Buffer = NULL”, pass back – 1: Search defeat; Pass other
value back: That is the size of space for buffer.
When “R _ Buffer ≠ NULL”, pass back – 1: Search defeat; Pass other
value back: That is the record position which confirm to contrast data.
Search the designated field. After success, acquiring the appointed field
in including the field’s record.
int SearchField_GF(_DBMS* F_Search, char* field, int search_fieldno, int
recordno, int get_field_no, char* F_Buffer, int flag);
char str[8]=”abcdefg”,str_buffer[60];
SearchField_GF(&fsearch, str,0,0,1,str_buffer,FORWARD);
Kommentare zu diesen Handbüchern